Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: user #4

Open
fripokoff opened this issue Feb 7, 2024 · 1 comment

Comments

@fripokoff
Copy link

Hello after seeing your installation I have an error can anyone help?

Screenshot 2024-02-07 012933
@mayankch283
Copy link

mayankch283 commented May 14, 2024

Hi. In the same directory as of app, run the following python script in the console. Rerun the run.py and it should work.


from restaurant import db, app

with app.app_context():
    db.drop_all()
    db.create_all()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants