|
|
|
|
@ -13,7 +13,10 @@ SECRET_KEY = '!eiquy7_+2#vn3z%zfp51$m-=tmvtcv*cj*@x$!v(_9btq0w=$' |
|
|
|
|
COMMENT_SECRET = 'ntyy70()&^&%)_^%#++i[k,q4jnb' |
|
|
|
|
|
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production! |
|
|
|
|
DEBUG = False |
|
|
|
|
if os.environ.get('DB_NAME', 'codemy') == 'codemy': |
|
|
|
|
DEBUG = False |
|
|
|
|
else: |
|
|
|
|
DEBUG = True |
|
|
|
|
TESTING = False |
|
|
|
|
TEST_EMAIL = 'bez.b.unix@gmail.com' |
|
|
|
|
TEACHER = 't@skillbox.ru' |
|
|
|
|
@ -116,15 +119,15 @@ WSGI_APPLICATION = 'lms.wsgi.application' |
|
|
|
|
# https://docs.djangoproject.com/en/1.9/ref/settings/#databases |
|
|
|
|
|
|
|
|
|
DATABASES = { |
|
|
|
|
'default': { |
|
|
|
|
'HOST': '192.168.0.2', |
|
|
|
|
'ENGINE': 'django.db.backends.postgresql_psycopg2', |
|
|
|
|
'NAME': 'codemy', |
|
|
|
|
'USER': 'team', |
|
|
|
|
'PASSWORD': 'nu5Xefise' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
'default': { |
|
|
|
|
'ENGINE': 'django.db.backends.postgresql_psycopg2', |
|
|
|
|
'NAME': os.environ.get('DB_NAME', 'codemy'), |
|
|
|
|
'USER': os.environ.get('PG_ENV_POSTGRES_USER', 'team'), |
|
|
|
|
'PASSWORD': os.environ.get('PG_ENV_POSTGRES_PASSWORD', 'nu5Xefise'), |
|
|
|
|
'HOST': os.environ.get('PG_PORT_5432_TCP_ADDR', '77.244.221.176'), |
|
|
|
|
'PORT': os.environ.get('PG_PORT_5432_TCP_PORT', '5432'), |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# Password validation |
|
|
|
|
# https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators |
|
|
|
|
|