flasky: Error Authenticating a User.
Hello, Miguel I’m working through chapter 8 and I’m getting an error when trying to first authenticate the users. It seems like the tables aren’t getting created in my db but when I run python manage.py shell and print u.username or any other of the attributes I get the correct values returned. Perhaps you know where I’m going wrong? Let me know if I can provide you with any other files. Thanks a lot.
OperationalError: (sqlite3.OperationalError) no such table: users [SQL: u'SELECT users.id AS users_id, users.email AS users_email, users.username AS users_username, users.password_hash AS users_password_hash, users.role_id AS users_role_id \nFROM users \nWHERE users.email = ?\n LIMIT ? OFFSET ?'] [parameters: (u'john@example.com', 1, 0)]
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 21 (10 by maintainers)
Understood. Thank you very much!