Fix redirection of /.
1 parent
29bc9ed559
commit
55710bd0fd
1 file changed
+2
-2
@@ -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'))
|
||||||
Reference in new issue
Block a user