mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-20 23:41:20 +00:00
Exception for importing routes and models while running testDB.py
This commit is contained in:
parent
2d268811de
commit
bb1b6a86b2
1 changed files with 6 additions and 1 deletions
|
@ -39,4 +39,9 @@ from advlabdb import models
|
|||
user_datastore = SQLAlchemyUserDatastore(db, models.User, models.Role)
|
||||
Security(app, user_datastore)
|
||||
|
||||
from advlabdb import routes, modelViews
|
||||
try:
|
||||
from advlabdb import routes, modelViews
|
||||
except Exception as ex:
|
||||
print(
|
||||
"\nYou are probably initializing the database with a script. If not, then you have to worry about not being able to import in __init__.py!\n"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue