FlaskDormitoryProject/app.py
2023-04-28 09:25:31 +08:00

25 lines
440 B
Python

from flask import Flask, render_template
from blueprint.Login import bp_login
app = Flask(__name__)
app.register_blueprint(bp_login)
@app.route('/')
def index():
return render_template('index.html')
@app.errorhandler(404)
def page_not_found(e):
return render_template('404.html'), 404
@app.errorhandler(500)
def internal_server_error(e):
return render_template('500.html'), 500
if __name__ == '__main__':
app.run()