mirror of
https://github.com/QingdaoU/OpenVJ.git
synced 2025-01-16 01:13:36 +00:00
修改部分配置
This commit is contained in:
parent
9660dc6313
commit
231798363c
@ -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,
|
||||
|
@ -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 *
|
||||
|
Loading…
x
Reference in New Issue
Block a user