Fix redirection of /.
This commit is contained in:
parent
29bc9ed559
commit
55710bd0fd
@ -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'))
|
||||||
|
Loading…
Reference in New Issue
Block a user