Port some suconfig/superuser endpoints, with data.model references
This commit is contained in:
parent
841053f878
commit
acf242f241
5 changed files with 379 additions and 13 deletions
|
@ -4,6 +4,9 @@ from flask import Flask
|
|||
from _init_config import CONF_DIR
|
||||
from config_app.config_util.config import get_config_provider
|
||||
|
||||
|
||||
from util.config.superusermanager import SuperUserManager
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
@ -29,3 +32,4 @@ else:
|
|||
|
||||
# Load the override config via the provider.
|
||||
config_provider.update_app_config(app.config)
|
||||
superusers = SuperUserManager(app)
|
||||
|
|
Reference in a new issue