Browse Source

modified for debug

master
Phuntsok Drak-pa 1 year ago
parent
commit
db2f9f41a5
No known key found for this signature in database GPG Key ID: 9CB34B6827C66D22
1 changed files with 9 additions and 11 deletions
  1. +9
    -11
      conlangdict/settings.py

+ 9
- 11
conlangdict/settings.py View File

@@ -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&[email protected]*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/