部分信息放入 custom_settings 里面
This commit is contained in:
17
oj/custom_settings.example.py
Normal file
17
oj/custom_settings.example.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# coding=utf-8
|
||||
import os
|
||||
|
||||
SECRET_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
|
||||
|
||||
SSO = {"callback": "https://xxxxxxxxx/login"}
|
||||
|
||||
WEBSITE_INFO = {"website_name": u"xx大学 OnlineJudge",
|
||||
"website_name_shortcut": u"qduoj",
|
||||
"website_footer": u"xx大学xx学院<a href=\"http://www.miibeian.gov.cn/\">京ICP备xxxxx号-1</a>",
|
||||
"url": u"https://your-domain.com"}
|
||||
|
||||
|
||||
SMTP_CONFIG = {"smtp_server": "smtp.xxx.com",
|
||||
"email": "noreply@xxx.com",
|
||||
"password": os.environ.get("smtp_password", "111111"),
|
||||
"tls": False}
|
||||
Reference in New Issue
Block a user