Ammar Ibrahim
Results
2
comments of
Ammar Ibrahim
This is because flask-sqlalchemy update in 3.0 look up here [https://flask-sqlalchemy.palletsprojects.com/en/3.0.x/quickstart/#create-the-tables](https://flask-sqlalchemy.palletsprojects.com/en/3.0.x/quickstart/#create-the-tables) update your code to this ``` def create_database(app): if not path.exists('website/' + DB_NAME): with app.app_context(): db.create_all() print('Created Database!') ```...
Check here [Solutions ](https://github.com/techwithtim/Flask-Web-App-Tutorial/issues/79)