docker启动的时候创建密钥和生成数据库

This commit is contained in:
virusdefender
2016-02-20 13:57:14 +08:00
parent cd123d2cdf
commit ac2b2445b5
3 changed files with 38 additions and 3 deletions

View File

@@ -1,9 +1,6 @@
# coding=utf-8
import os
# please set your own SECRET_KEY to a long random string
SECRET_KEY = None
WEBSITE_INFO = {"website_name": u"example大学 OnlineJudge",
"website_name_shortcut": u"example oj",
@@ -15,3 +12,8 @@ SMTP_CONFIG = {"smtp_server": "smtp.xxx.com",
"email": "noreply@xxx.com",
"password": os.environ.get("smtp_password", "111111"),
"tls": False}
# please set your own SECRET_KEY to a long random string
# SECRET_KEY = ""