mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Move events to app package
This commit is contained in:
parent
7757c12dc4
commit
076ba7356d
@ -23,6 +23,8 @@ def create_app(config_name):
|
|||||||
mail.init_app(app)
|
mail.init_app(app)
|
||||||
socketio.init_app(app, message_qeue='redis://')
|
socketio.init_app(app, message_qeue='redis://')
|
||||||
|
|
||||||
|
from . import events
|
||||||
|
|
||||||
from .admin import admin as admin_blueprint
|
from .admin import admin as admin_blueprint
|
||||||
app.register_blueprint(admin_blueprint, url_prefix='/admin')
|
app.register_blueprint(admin_blueprint, url_prefix='/admin')
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
from flask import current_app, request
|
from flask import current_app, request
|
||||||
from flask_login import current_user, login_required
|
from flask_login import current_user, login_required
|
||||||
from ..decorators import admin_required
|
from .decorators import admin_required
|
||||||
from .. import db, socketio
|
from . import db, socketio
|
||||||
from ..models import User
|
from .models import User
|
||||||
import json
|
import json
|
||||||
import jsonpatch
|
import jsonpatch
|
||||||
import logging
|
import logging
|
@ -3,7 +3,7 @@ from flask import Blueprint
|
|||||||
main = Blueprint('main', __name__)
|
main = Blueprint('main', __name__)
|
||||||
|
|
||||||
|
|
||||||
from . import errors, events, views
|
from . import errors, views
|
||||||
from ..models import Permission
|
from ..models import Permission
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user