Flask-Web-App-Tutorial icon indicating copy to clipboard operation
Flask-Web-App-Tutorial copied to clipboard

typeError SQLAlchemy

Open tindn98 opened this issue 2 years ago • 1 comments

File "c:\Users\tindn\Desktop\Flask web app\main.py", line 3, in app = create_app() File "c:\Users\tindn\Desktop\Flask web app\website_init_.py", line 24, in create_app create_database(app) File "c:\Users\tindn\Desktop\Flask web app\website_init_.py", line 39, in create_database db.create_all(app=app) TypeError: SQLAlchemy.create_all() got an unexpected keyword argument 'app'

I have been getting this error, this is something related to the data base, Please help me with this, Its the exact code Im trying to run.

tindn98 avatar Oct 10 '22 02:10 tindn98

Check here Solutions

ammar0466 avatar Oct 10 '22 14:10 ammar0466