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
)
Code is work well, when using flask, but you cant queary the database, when using
-in table name.So, rename
flasklogin-userstoflasklogin_usersPART: