python学习
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from flask import Blueprint
|
||||
from flask import Blueprint,render_template
|
||||
|
||||
route_index = Blueprint( 'index_page',__name__ )
|
||||
|
||||
@route_index.route("/")
|
||||
def index():
|
||||
return "Hello World"
|
||||
return render_template("index/index.html")
|
||||
Reference in New Issue
Block a user