From 15091e28c070dc0d248b310fe1aa9638de92424a Mon Sep 17 00:00:00 2001 From: Jocelyn Delande Date: Wed, 19 Aug 2015 22:47:52 +0200 Subject: Made an URL prefix configurable in settings, includes tests. --- budget/run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'budget/run.py') diff --git a/budget/run.py b/budget/run.py index 2e18599..bdb8f46 100644 --- a/budget/run.py +++ b/budget/run.py @@ -6,7 +6,7 @@ from raven.contrib.flask import Sentry from web import main, db, mail from api import api - +from utils import PrefixedWSGI app = Flask(__name__) @@ -15,6 +15,7 @@ def configure(): """ A way to (re)configure the app, specially reset the settings """ app.config.from_object("default_settings") + app.wsgi_app = PrefixedWSGI(app) # Deprecations if 'DEFAULT_MAIL_SENDER' in app.config: -- cgit v1.1