Useful for debugging to allow localhost here.
This commit is contained in:
parent
478db62696
commit
2449cf6033
1 changed files with 5 additions and 1 deletions
|
@ -43,7 +43,11 @@ DEBUG = False
|
||||||
|
|
||||||
# NOTE: this is needed when DEGUB is False.
|
# NOTE: this is needed when DEGUB is False.
|
||||||
# https://docs.djangoproject.com/en/1.8/ref/settings/#allowed-hosts
|
# 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
|
# Database settings
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue