mirror of https://github.com/mitsuhiko/flask.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
362 B
16 lines
362 B
14 years ago
|
from flask import Blueprint, render_template
|
||
|
|
||
14 years ago
|
admin = Blueprint('admin', __name__, url_prefix='/admin',
|
||
|
template_folder='templates',
|
||
|
static_folder='static')
|
||
14 years ago
|
|
||
|
|
||
|
@admin.route('/')
|
||
|
def index():
|
||
|
return render_template('admin/index.html')
|
||
|
|
||
|
|
||
|
@admin.route('/index2')
|
||
|
def index2():
|
||
|
return render_template('./admin/index.html')
|