Move events to app package

This commit is contained in:
Patrick Jentsch 2019-11-06 13:22:18 +01:00
parent 7757c12dc4
commit 076ba7356d
3 changed files with 6 additions and 4 deletions

View File

@ -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')

View File

@ -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

View File

@ -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