Fix redirection of /.

This commit is contained in:
Alexis Lahouze 2016-02-17 09:13:22 +01:00
parent 29bc9ed559
commit 55710bd0fd

View File

@ -1,4 +1,4 @@
from flask import Blueprint, render_template from flask import Blueprint, redirect, url_for
from flask.ext.assets import Environment, Bundle from flask.ext.assets import Environment, Bundle
@ -25,4 +25,4 @@ assets.register('frontend_css', frontend_css)
@blueprint.route('/') @blueprint.route('/')
def index(): def index():
return blueprint.send_static_file('index.html') return redirect(url_for('frontend.static', filename='index.html'))