1 Star 0 Fork 4

史鑫鑫/基于深度学习的新闻推荐系统

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
application.py 504 Bytes
一键复制 编辑 原始数据 按行查看 历史
ccql 提交于 2022-03-10 15:55 . layout布局优化,拦截器bug修改
import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
import pymysql
import flask_mysqldb
from flask_script import Manager
app = Flask(__name__)
manager = Manager(app)
"""
多环境配置文件
"""
app.config.from_pyfile("config/base_setting.py")
# ops_config=local|production
os.environ["ops_config"] = "local" # 决定导入哪一个环境配置
if "ops_config" in os.environ:
app.config.from_pyfile("config/%s_setting.py" % (os.environ['ops_config']))
db = SQLAlchemy(app)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/shi-xinxinzhao/dnr-bisher.git
git@gitee.com:shi-xinxinzhao/dnr-bisher.git
shi-xinxinzhao
dnr-bisher
基于深度学习的新闻推荐系统
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385