site-musique/site_musique/settings/prod.py
2019-09-22 13:15:19 +02:00

37 lines
863 B
Python

from .base import *
# Password validation
# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
DEBUG = False
ALLOWED_HOSTS = ["musique-meyenheim.fr"]
SECRET_KEY = os.environ['SECRET_KEY']
VAR_DIR = os.environ['VAR_DIR']
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(VAR_DIR, 'db.sqlite3'),
}
}
MEDIA_ROOT = os.path.join(VAR_DIR, 'media')