修改部分配置

This commit is contained in:
virusdefender 2016-04-28 18:12:35 +08:00
parent 9660dc6313
commit 231798363c
No known key found for this signature in database
GPG Key ID: 1686FB5677979E61
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ ALLOWED_HOSTS = ['*']
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': "oj",
'NAME': "vj",
'CONN_MAX_AGE': 0.1,
'HOST': os.environ["MYSQL_PORT_3306_TCP_ADDR"],
'PORT': 3306,

View File

@ -14,7 +14,7 @@ https://docs.djangoproject.com/en/1.9/ref/settings/
import os
# 判断运行环境
ENV = os.environ.get("oj_env", "local")
ENV = os.environ.get("vj_env", "local")
if ENV == "local":
from .local_settings import *