Start moving things out of the admin module
parent
0223999a04
commit
9358a76d89
@ -1,33 +0,0 @@
|
||||
from flask import Blueprint
|
||||
from mailu import login_manager, db
|
||||
|
||||
import flask_login
|
||||
|
||||
|
||||
app = Blueprint(
|
||||
'admin', __name__,
|
||||
template_folder='templates',
|
||||
static_folder='static')
|
||||
|
||||
# Import models
|
||||
from mailu.admin import models
|
||||
|
||||
# Register the login components
|
||||
login_manager.login_view = "admin.login"
|
||||
login_manager.user_loader(models.User.query.get)
|
||||
|
||||
@app.context_processor
|
||||
def inject_user():
|
||||
return dict(current_user=flask_login.current_user)
|
||||
|
||||
# Import views
|
||||
from mailu.admin.views import \
|
||||
admins, \
|
||||
managers, \
|
||||
base, \
|
||||
aliases, \
|
||||
users, \
|
||||
domains, \
|
||||
relays, \
|
||||
alternatives, \
|
||||
fetches
|
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 106 KiB |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue