Obtain ALLOWED_HOSTS from config

This commit is contained in:
PCoder 2019-02-22 06:06:36 +01:00
parent 4d2ee8cf77
commit e8f12e18d2
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
DEBUG = config('DEBUG', default=False, cast=bool)
ALLOWED_HOSTS = (os.environ.get('ALLOWED_HOSTS', 'localhost')).split(",")
ALLOWED_HOSTS = config('ALLOWED_HOSTS', cast=Csv())
INSTALLED_APPS = [
'django.contrib.admin',