加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
config.ini 1011 Bytes
一键复制 编辑 原始数据 按行查看 历史
showkeyjar 提交于 2020-03-23 11:32 . change config file
[flask]
# Enable debug mode
DEVELOPMENT = True
DEBUG = True
# Create dummy secrey key so we can use sessions
SECRET_KEY = 997
# Create in-memory database
DATABASE_FILE = data/recsys.sqlite
# SQLALCHEMY_DATABASE_URI = 'sqlite:///' + DATABASE_FILE
SQLALCHEMY_DATABASE_URI = sqlite:///data/recsys.sqlite
SQLALCHEMY_ECHO = True
SQLALCHEMY_TRACK_MODIFICATIONS = False
# Flask-Security config
SECURITY_URL_PREFIX = /admin
SECURITY_PASSWORD_HASH = pbkdf2_sha512
SECURITY_PASSWORD_SALT = ATGUOHAELKiubahiughaerGOJAEGj
# Flask-Security URLs, overridden because they don't put a / at the end
SECURITY_LOGIN_URL = /login/
SECURITY_LOGOUT_URL = /logout/
SECURITY_REGISTER_URL = /register/
SECURITY_RESET_URL = /reset/
SECURITY_POST_LOGIN_VIEW = /admin/
SECURITY_POST_LOGOUT_VIEW = /admin/
SECURITY_POST_REGISTER_VIEW = /admin/
SECURITY_POST_RESET_VIEW = /admin/
# Flask-Security features
SECURITY_REGISTERABLE = True
SECURITY_RECOVERABLE = True
SECURITY_CHANGEABLE = True
SECURITY_SEND_REGISTER_EMAIL = False
[test]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化