I made a model like in quickstart, but for some reason I can't get the fields from the model... I tried different versions of Python, different databases, and tried installing the version from Github. But I keep getting this error.
Model (models.py):
class User(Model):
firstName: CharField()
lastName: CharField()
email: CharField(unique=True)
password: CharField()
id: AutoField()
class Meta:
database = db
Line where I getting error (auth.py):
user = User.get(User.email == model.email)
In databases only one field - id:
sqlite:
postgresql:
in code:
This is my first time using peewee, what’s wrong? Or do I need manually create all tables, because peewee can’t do that?
Win11 23H2, Python 3.11.1 and 3.9.9.
I made a model like in quickstart, but for some reason I can't get the fields from the model... I tried different versions of Python, different databases, and tried installing the version from Github. But I keep getting this error.
Model (models.py):
Line where I getting error (auth.py):
In databases only one field - id:
This is my first time using peewee, what’s wrong? Or do I need manually create all tables, because peewee can’t do that? Win11 23H2, Python 3.11.1 and 3.9.9.