mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-04 21:51:43 -04:00
Merge branch 'master' of github.com:alphagov/notifications-admin
This commit is contained in:
@@ -9,6 +9,7 @@ from flask_wtf import CsrfProtect
|
||||
from webassets.filter import get_filter
|
||||
from werkzeug.exceptions import abort
|
||||
|
||||
from app.notify_client.api_client import AdminAPIClient
|
||||
from app.its_dangerous_session import ItsdangerousSessionInterface
|
||||
import app.proxy_fix
|
||||
from config import configs
|
||||
@@ -18,6 +19,8 @@ db = SQLAlchemy()
|
||||
login_manager = LoginManager()
|
||||
csrf = CsrfProtect()
|
||||
|
||||
admin_api_client = AdminAPIClient()
|
||||
|
||||
|
||||
def create_app(config_name):
|
||||
application = Flask(__name__)
|
||||
@@ -39,6 +42,7 @@ def create_app(config_name):
|
||||
proxy_fix.init_app(application)
|
||||
|
||||
application.session_interface = ItsdangerousSessionInterface()
|
||||
admin_api_client.init_app(application)
|
||||
|
||||
return application
|
||||
|
||||
@@ -98,7 +102,8 @@ def init_asset_environment(app):
|
||||
assets.Bundle(
|
||||
'govuk_template/govuk-template.scss',
|
||||
filters='scss',
|
||||
output='stylesheets/govuk-template.css'
|
||||
output='stylesheets/govuk-template.css',
|
||||
depends='*.scss'
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user