Skip to content

Invalid __talename__ in models.py #29

Description

@morfyum

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
	)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions