|
|
@ -12,6 +12,7 @@ https://docs.djangoproject.com/en/1.8/ref/settings/ |
|
|
|
|
|
|
|
import os |
|
|
|
import warnings |
|
|
|
import dj_database_url |
|
|
|
|
|
|
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
|
|
|
|
|
|
@ -110,6 +111,10 @@ if os.environ.get("DB") == "mysql": |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if os.environ.get("APP_ENV") == "prod": |
|
|
|
DATABASES['default'] = dj_database_url.config() |
|
|
|
|
|
|
|
|
|
|
|
LANGUAGE_CODE = 'en-us' |
|
|
|
|
|
|
|
TIME_ZONE = 'UTC' |
|
|
|