bundled/flask/tests/moduleapp/apps/admin/__init__.py @ 8be7ac46f0ec
Fix web tests
The index page always returns a 200 http status, even with an unknown revision
author |
Christophe de Vienne <cdevienne@gmail.com> |
date |
Fri, 21 Nov 2014 18:35:45 +0100 |
parents |
f33efe14bff1 |
children |
(none) |
from flask import Module, render_template
admin = Module(__name__, url_prefix='/admin')
@admin.route('/')
def index():
return render_template('admin/index.html')
@admin.route('/index2')
def index2():
return render_template('./admin/index.html')