thank you sir for the video.i have been trying for many days to solve this error. Spend days on youtube and Google to find the solution. but just watching your video save my day.
another solution: As it says in the runtime error message This typically means that you attempted to use functionality that needed the current application. To solve this, set up an application context with app.app_context(). Open the python terminal in your project directory and manually add a context from project_name import app, db app.app_context().push() db.create_all()