Decouple ALLOWED_HOSTS.

This commit is contained in:
Josh W 2020-01-21 18:07:39 -05:00
parent 225a2c5b26
commit e7d30d7f3b

View file

@ -4,7 +4,7 @@ Django settings file.
import os
from decouple import config
from decouple import config, Csv
from dj_database_url import parse as db_url
@ -19,6 +19,8 @@ DEBUG = config('DEBUG', default=False, cast=bool)
# Django-specific settings
#
ALLOWED_HOSTS = config('ALLOWED_HOSTS', default=[], cast=Csv())
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',