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

requested http://localhost:3001/api/auth/sign-up: ERROR in [core: 96]: (sqlite3.OperationalError) no such table: user #30

Open
wellangular opened this issue Aug 30, 2019 · 1 comment

Comments

@wellangular
Copy link

wellangular commented Aug 30, 2019

teminal log
-desktop:~/Downloads/flask-starter/backend$ python manage.py runserver

  • Serving Flask app "api" (lazy loading)
  • Environment: production
    WARNING: Do not use the development server in a production environment.
    Use a production WSGI server instead.
  • Debug mode: on
  • Running on http://0.0.0.0:3001/ (Press CTRL+C to quit)
  • Restarting with stat
  • Debugger is active!
  • Debugger PIN: 147-039-505
    127.0.0.1 - - [30/Aug/2019 18:33:37] "OPTIONS /api/auth/sign-up HTTP/1.1" 200 -
    2019-08-30 18:33:38,005 127.0.0.1: requested http://localhost:3001/api/auth/sign-up: ERROR in [core: 96]: (sqlite3.OperationalError) no such table: user
    [SQL: SELECT user.id AS user_id, user.email AS user_email, user.password AS user_password, user.first_name AS user_first_name, user.last_name AS user_last_name, user.login AS user_login, user.age AS user_age, user.street AS user_street, user.city AS user_city, user.zip AS user_zip
    FROM user
    WHERE user.email = ?
    LIMIT ? OFFSET ?]
    [parameters: ('[email protected]', 1, 0)]
    (Background on this error at: http://sqlalche.me/e/e3q8)
    127.0.0.1 - - [30/Aug/2019 18:33:38] "POST /api/auth/sign-up HTTP/1.1" 500 -
@rbetancor
Copy link

You have to create the DB, as in any other flask proyect

python manage.py recreate_db

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