23 lines
461 B
Python
23 lines
461 B
Python
from flask import Flask, render_template
|
|
from blueprint.Login import bp_login
|
|
from blueprint.error import bp_error
|
|
|
|
# 创建Flask应用程序实例
|
|
app = Flask(__name__)
|
|
app.register_blueprint(bp_login, url_prefix='/login')
|
|
app.register_blueprint(bp_error)
|
|
|
|
|
|
# 配置Flask应用程序实例
|
|
app.config['SECRET_KEY'] = 'Myth wky'
|
|
|
|
|
|
@app.route('/')
|
|
def index():
|
|
return render_template('index.html')
|
|
|
|
|
|
if __name__ == '__main__':
|
|
DEBUG = True
|
|
app.run()
|