Separated install script to avoid launch errors

This commit is contained in:
2022-06-22 11:20:30 +01:00
parent 91dc93758a
commit 591b868920
4 changed files with 35 additions and 37 deletions

View File

@@ -1,5 +1,4 @@
from .config import Production as Config
from .install import install_app
from .models import User
from .extensions import bootstrap, csrf, db, login_manager, mail
@@ -53,7 +52,5 @@ def create_app():
app.register_blueprint(views)
app.register_blueprint(quiz)
app.register_blueprint(editor, url_prefix='/admin/editor')
install_app(app)
return app