2
0
Fork 0

Fix no one being allowed to use the app

This commit is contained in:
Luca 2022-04-13 19:46:25 +02:00
parent 664e1617b0
commit 4cc1a082c9
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ SECRET_KEY = getenv('SECRET_KEY', 'django-insecure-pdgzgd_!w&&cfqc%r&!v_^6pgf!sz
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = getenv('ENVIRONMENT', 'development') != 'production'
ALLOWED_HOSTS = getenv('ALLOWED_HOSTS', '').split(',')
ALLOWED_HOSTS = list(filter(lambda s: s != '', getenv('ALLOWED_HOSTS', '').split(',')))
# Application definition