mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 02:24:20 +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)
|
||||
socketio.init_app(app, message_qeue='redis://')
|
||||
|
||||
from . import events
|
||||
|
||||
from .admin import admin as admin_blueprint
|
||||
app.register_blueprint(admin_blueprint, url_prefix='/admin')
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
from flask import current_app, request
|
||||
from flask_login import current_user, login_required
|
||||
from ..decorators import admin_required
|
||||
from .. import db, socketio
|
||||
from ..models import User
|
||||
from .decorators import admin_required
|
||||
from . import db, socketio
|
||||
from .models import User
|
||||
import json
|
||||
import jsonpatch
|
||||
import logging
|
@ -3,7 +3,7 @@ from flask import Blueprint
|
||||
main = Blueprint('main', __name__)
|
||||
|
||||
|
||||
from . import errors, events, views
|
||||
from . import errors, views
|
||||
from ..models import Permission
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user