techwithtim / Flask-Web-App-Tutorial

Code for the note storing flask web app made during a YouTube video.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

typeError SQLAlchemy

tindn98 opened this issue · 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.