Decouple ALLOWED_HOSTS.
This commit is contained in:
parent
225a2c5b26
commit
e7d30d7f3b
1 changed files with 3 additions and 1 deletions
|
@ -4,7 +4,7 @@ Django settings file.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from decouple import config
|
from decouple import config, Csv
|
||||||
from dj_database_url import parse as db_url
|
from dj_database_url import parse as db_url
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,6 +19,8 @@ DEBUG = config('DEBUG', default=False, cast=bool)
|
||||||
# Django-specific settings
|
# Django-specific settings
|
||||||
#
|
#
|
||||||
|
|
||||||
|
ALLOWED_HOSTS = config('ALLOWED_HOSTS', default=[], cast=Csv())
|
||||||
|
|
||||||
AUTH_PASSWORD_VALIDATORS = [
|
AUTH_PASSWORD_VALIDATORS = [
|
||||||
{
|
{
|
||||||
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
|
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
|
||||||
|
|
Loading…
Reference in a new issue