Mercurial > hg-website
comparison hgwebsite.py @ 407:8e93934dc587
Route static url directly
author | David Soria Parra <davidsp@fb.com> |
---|---|
date | Tue, 11 Mar 2014 15:38:40 -0700 |
parents | 4dfad479ee98 |
children | b173399d3635 |
comparison
equal
deleted
inserted
replaced
406:c5efd57859d6 | 407:8e93934dc587 |
---|---|
4 # This software may be used and distributed according to the terms of the | 4 # This software may be used and distributed according to the terms of the |
5 # GNU General Public License version 2 or any later version. | 5 # GNU General Public License version 2 or any later version. |
6 import os | 6 import os |
7 import flask | 7 import flask |
8 | 8 |
9 app = flask.Flask(__name__) | 9 app = flask.Flask(__name__, static_url_path='') |
10 | 10 |
11 | 11 |
12 @app.route('/') | 12 @app.route('/') |
13 def indexpage(): | 13 def indexpage(): |
14 return flask.render_template('frontpage.html') | 14 return flask.render_template('frontpage.html') |