Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDaniel Santos
34,969 PointsI can't create the table
Traceback (most recent call last):
File "students.py", line 14, in <module>
db.create_tables(['Student'], safe=True)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/peewee.py", line 3097, in create_tables
create_model_tables(models, fail_silently=safe)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/peewee.py", line 4238, in create_model_tables
for m in sort_models_topologically(models):
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/peewee.py", line 4259, in sort_models_topologically
for m in sorted(models, key=names, reverse=True):
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/peewee.py", line 4258, in <lambda>
names = lambda m: (m._meta.name, m._meta.db_table)
AttributeError: 'str' object has no attribute '_meta'
This is the error that I got back. I can't figure it out...
Daniel Santos
34,969 PointsIt's alright it was a typo in my code.... Hate those.
Daniel Santos
34,969 PointsDaniel Santos
34,969 PointsKenneth Love