diff --git a/roles/pdc/frontend/templates/settings_local.py b/roles/pdc/frontend/templates/settings_local.py index 298eadc9d7..596ff2166c 100644 --- a/roles/pdc/frontend/templates/settings_local.py +++ b/roles/pdc/frontend/templates/settings_local.py @@ -43,7 +43,11 @@ DEBUG = False # NOTE: this is needed when DEGUB is False. # https://docs.djangoproject.com/en/1.8/ref/settings/#allowed-hosts -ALLOWED_HOSTS = ['{{ inventory_hostname }}'] +ALLOWED_HOSTS = [ + '{{ inventory_hostname }}', + '{{ inventory_hostname_short }}', + 'localhost', +] # Database settings DATABASES = {