This commit is contained in:
virusdefender
2017-01-23 16:48:04 +08:00
parent cfde5b93e5
commit d9fad97e35
27 changed files with 46 additions and 52 deletions

View File

@@ -10,10 +10,11 @@ https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
from __future__ import absolute_import
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
from .custom_settings import *
# 判断运行环境
ENV = os.environ.get("oj_env", "local")
@@ -22,7 +23,6 @@ if ENV == "local":
elif ENV == "server":
from .server_settings import *
from .custom_settings import *
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))