Runtime error with flask-database-setup

Can someone please help me. Everything has worked fine up until the point at 7:17 where he runs the “db.create_all()”.
When i run it, i get a “runtimeError: working outside application context”. I know how to fix this, but i don’t understand why i get the error and he doesn’t. can some one please explain?

https://www.codecademy.com/courses/learn-flask/videos/flask-database-setup

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.