Update app templates and routes
This commit is contained in:
@@ -4,7 +4,7 @@ from werkzeug.exceptions import RequestEntityTooLarge
|
||||
|
||||
from .extensions import db, login_manager
|
||||
from .models import AppSettings, User
|
||||
from .cli import init_db_command
|
||||
from .cli import ensure_db_command, init_db_command
|
||||
|
||||
|
||||
def create_app():
|
||||
@@ -85,6 +85,7 @@ def create_app():
|
||||
return db.session.get(User, int(user_id))
|
||||
|
||||
# CLI
|
||||
app.cli.add_command(ensure_db_command)
|
||||
app.cli.add_command(init_db_command)
|
||||
|
||||
# Blueprints
|
||||
|
||||
Reference in New Issue
Block a user