diff --git a/app/__init__.py b/app/__init__.py index 498230fe3..51cfbb27b 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -12,6 +12,7 @@ from app.notify_client.api_client import AdminAPIClient from app.its_dangerous_session import ItsdangerousSessionInterface import app.proxy_fix from config import configs +from utils import logging db = SQLAlchemy() @@ -31,6 +32,7 @@ def create_app(config_name): db.init_app(application) init_app(application) init_csrf(application) + logging.init_app(application) login_manager.init_app(application) login_manager.login_view = 'main.render_sign_in' diff --git a/requirements.txt b/requirements.txt index 42b66ee5a..1c6175044 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,3 +10,5 @@ Flask-Login==0.2.11 Flask-Bcrypt==0.6.2 git+https://github.com/alphagov/notify-api-client.git@0.1.4#egg=notify-api-client==0.1.4 + +git+https://github.com/alphagov/notifications-utils.git@0.0.3#egg=notifications-utils==0.0.3 diff --git a/scripts/run_app.sh b/scripts/run_app.sh index a5ec9d8b5..96947cc19 100755 --- a/scripts/run_app.sh +++ b/scripts/run_app.sh @@ -1,3 +1,3 @@ #!/bin/bash -python app.py runserver +python3 app.py runserver