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 trial

Python Build a Social Network with Flask Takin' Names Macros

Marta P.
Marta P.
2,849 Points

name SQLite is not defined

Hey ya, so when I try to run the app this is the one error I cannot figure out. Here the snap: https://w.trhou.se/ketl4go5ob

Thanks!:)

1 Answer

You'll need to take a look at the documentation for usage the DATABASE has to be a string 'test.db' Your indentation is off in models create_user

http://docs.peewee-orm.com/en/latest/peewee/example.html?highlight=SQLite#establishing-a-database-connection

Yes same here name 'SQLiteDatabase' is not defined