modified for debug

parent 9c5b41a0
......@@ -16,7 +16,6 @@ from .secrets import RELEASE_KEY, DEBUG, SECRET_DATABASES, RELEASE_PROD
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/
......@@ -24,8 +23,7 @@ SECRET_KEY = 'udbex%6hseo5tys7ovemjy&cu5x@r*qc9=2gqufh$md%#(ofx*'
if RELEASE_PROD:
SECRET_KEY = RELEASE_KEY
ALLOWED_HOSTS = ['localhost', '127.0.0.1', 'phundrak.fr', 'langue.phundrak.fr', 'dict.phundrak.fr',]
ALLOWED_HOSTS = ['localhost', '127.0.0.1', 'marpa', 'dict.phundrak.fr']
# Application definition
......@@ -70,7 +68,6 @@ TEMPLATES = [
WSGI_APPLICATION = 'conlangdict.wsgi.application'
# Database
# https://docs.djangoproject.com/en/2.1/ref/settings/#databases
......@@ -83,26 +80,28 @@ DATABASES = {
if RELEASE_PROD:
DATABASES = SECRET_DATABASES
# Password validation
# https://docs.djangoproject.com/en/2.1/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
'NAME':
'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
'NAME':
'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
'NAME':
'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
'NAME':
'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
# Internationalization
# https://docs.djangoproject.com/en/2.1/topics/i18n/
......@@ -116,7 +115,6 @@ USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.1/howto/static-files/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment