2 Star 1 Fork 32

rembern/TLv8-Flask-layui

forked from 陈乾/TLv8-Flask-layui 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
manage.py 623 Bytes
Copy Edit Raw Blame History
陈乾 authored 2022-05-16 19:11 . 完成登录功能
# _*_ codding:utf-8 _*_
from app import create_app, db
from flask_script import Manager, Shell
from flask_migrate import Migrate, MigrateCommand
from flask import render_template
app = create_app('default')
manager = Manager(app)
migrate = Migrate(app, db)
def make_shell_context():
return dict(app=app, db=db)
manager.add_command("shell", Shell(make_context=make_shell_context))
manager.add_command('db', MigrateCommand)
@app.errorhandler(404)
def page_not_found(error):
"""
404
"""
return render_template("404/404.html"), 404
# 测试环境使用
if __name__ == '__main__':
manager.run()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/rembern/tlv8-python-flask.git
git@gitee.com:rembern/tlv8-python-flask.git
rembern
tlv8-python-flask
TLv8-Flask-layui
master

Search