flasklogin-tutorial
flasklogin-tutorial copied to clipboard
Invalid __talename__ in models.py
Code is work well, when using flask, but you cant queary the database, when using -
in table name.
So, rename flasklogin-users
to flasklogin_users
PART:
class User(UserMixin, db.Model):
"""User account model."""
__tablename__ = 'flasklogin-users'
id = db.Column(
db.Integer,
primary_key=True
)