You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
When I try and run the example here I get the following traceback,
Traceback (most recent call last):
File "/home/martin/PycharmProjects/flaskPeewee_01/test.py", line 20, in <module>
class Role(db.Model, RoleMixin):
AttributeError: 'Database' object has no attribute 'Model'
To fix the problem, I changed the import order to,
from flask import Flask, render_template
from peewee import *
from flask_peewee.db import Database
from flask_security import Security, PeeweeUserDatastore, \
UserMixin, RoleMixin, login_required
Versions:
flask-peewee==3.0.3
peewee==3.10.0
The text was updated successfully, but these errors were encountered:
When I try and run the example here I get the following traceback,
To fix the problem, I changed the import order to,
Versions:
flask-peewee==3.0.3
peewee==3.10.0
The text was updated successfully, but these errors were encountered: