forked from orbit-oss/flask
parent
5b309831ec
commit
025589ee76
63 changed files with 3784 additions and 3459 deletions
|
|
@ -1,15 +1,19 @@
|
|||
from flask import Blueprint, render_template
|
||||
|
||||
admin = Blueprint('admin', __name__, url_prefix='/admin',
|
||||
template_folder='templates',
|
||||
static_folder='static')
|
||||
admin = Blueprint(
|
||||
"admin",
|
||||
__name__,
|
||||
url_prefix="/admin",
|
||||
template_folder="templates",
|
||||
static_folder="static",
|
||||
)
|
||||
|
||||
|
||||
@admin.route('/')
|
||||
@admin.route("/")
|
||||
def index():
|
||||
return render_template('admin/index.html')
|
||||
return render_template("admin/index.html")
|
||||
|
||||
|
||||
@admin.route('/index2')
|
||||
@admin.route("/index2")
|
||||
def index2():
|
||||
return render_template('./admin/index.html')
|
||||
return render_template("./admin/index.html")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue