summaryrefslogtreecommitdiff
path: root/talerbackoffice/backoffice/backoffice.py
diff options
context:
space:
mode:
Diffstat (limited to 'talerbackoffice/backoffice/backoffice.py')
-rw-r--r--talerbackoffice/backoffice/backoffice.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/talerbackoffice/backoffice/backoffice.py b/talerbackoffice/backoffice/backoffice.py
index ce2858e..e828310 100644
--- a/talerbackoffice/backoffice/backoffice.py
+++ b/talerbackoffice/backoffice/backoffice.py
@@ -26,7 +26,7 @@ import os
import base64
import requests
import flask
-from flask.ext.babel import Babel
+from flask_babel import Babel
from talerbackoffice.talerconfig import TalerConfig
from ..helpers import (join_urlparts, \
get_query_string, backend_error)
@@ -80,8 +80,9 @@ def utility_processor():
@app.route("/<lang>/")
-@app.route("/")
-def index():
+@app.route("/", defaults={"lang": "en"})
+def index(lang):
+ # 'lang' parameter not used.
return flask.render_template("templates/backoffice.html", instances=INSTANCES.split())
@app.route("/javascript")