Correct the way we get ALLOWED_HOSTS

This commit is contained in:
PCoder 2019-02-17 18:20:56 +01:00
parent 5ec63d8536
commit 876567f933

View file

@ -32,10 +32,10 @@ AUTH_LDAP_START_TLS = os.environ.get('LDAP_USE_TLS', False)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', 'localhost')
DEBUG = os.environ.get('DEBUG', False)
ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', 'localhost').split(",")
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',