From 231798363c93c3665bbcd434dfc0aa4ed70b2c5b Mon Sep 17 00:00:00 2001 From: virusdefender Date: Thu, 28 Apr 2016 18:12:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openvj/server_settings.py | 2 +- openvj/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openvj/server_settings.py b/openvj/server_settings.py index 9bec2ca..c5a5bd8 100644 --- a/openvj/server_settings.py +++ b/openvj/server_settings.py @@ -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, diff --git a/openvj/settings.py b/openvj/settings.py index 251a3fb..72ed29f 100644 --- a/openvj/settings.py +++ b/openvj/settings.py @@ -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 *