1 Star 0 Fork 87

leodata / admin_sys

forked from jackfrued / admin_sys 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.py 863 Bytes
一键复制 编辑 原始数据 按行查看 历史
jackfrued 提交于 2021-12-30 09:42 . 修改了main.py
"""
main.py - 主程序(项目入口)
Author: Hao
Date: 2021/9/9
"""
from datetime import timedelta
import flask
from flask_cors import CORS
from api import api_bp
from user import user_bp
app = flask.Flask(__name__)
CORS(app)
# 注册蓝图
app.register_blueprint(api_bp)
app.register_blueprint(user_bp)
# 修改Flask配置
# app.config['SECRET_KEY'] = 'Tl8sTUsNSzIjbjQkYDxGdmVoRmxHIWw8'
app.secret_key = 'Tl8sTUsNSzIjbjQkYDxGdmVoRmxHIWw8'
# app.config['PERMANENT_SESSION_LIFETIME'] = timedelta(days=7)
app.permanent_session_lifetime = timedelta(days=7)
# @app.route('/')
# @check_login
# def show_index():
# return redirect('/static/index.html')
#
#
# @app.errorhandler(404)
# def show_error_page(error):
# return redirect('/static/lyear_pages_error.html')
# if __name__ == '__main__':
# app.run(host='0.0.0.0', port=8000, debug=True)
Python
1
https://gitee.com/leodata/admin_sys.git
git@gitee.com:leodata/admin_sys.git
leodata
admin_sys
admin_sys
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891