diff options
Diffstat (limited to 'src/bootstrap.py')
-rw-r--r-- | src/bootstrap.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootstrap.py b/src/bootstrap.py index 146d9176..8aaba976 100644 --- a/src/bootstrap.py +++ b/src/bootstrap.py @@ -9,6 +9,7 @@ import logging import flask_restless from urllib.parse import urlsplit + def set_logging(log_path, log_level=logging.INFO, log_format='%(asctime)s %(levelname)s %(message)s'): formater = logging.Formatter(log_format) @@ -55,6 +56,7 @@ db = SQLAlchemy(application) # Create the Flask-Restless API manager. manager = flask_restless.APIManager(application, flask_sqlalchemy_db=db) + def populate_g(): from flask import g g.db = db |