diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-05-02 11:34:39 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-05-02 11:34:39 +0200 |
commit | f4473cf41854b3f6d469d026d0e82e0795d06ea0 (patch) | |
tree | 615bbcc28df7cb030e324f632823bfdf896fc994 /install | |
parent | dd7dcd93e434b1b376a8a9d00a98168920d98129 (diff) | |
download | Ishtar-f4473cf41854b3f6d469d026d0e82e0795d06ea0.tar.bz2 Ishtar-f4473cf41854b3f6d469d026d0e82e0795d06ea0.zip |
Install script: add ALLOWED_HOSTS to local_settings
Diffstat (limited to 'install')
-rwxr-xr-x | install/ishtar-prepare-instance | 1 | ||||
-rw-r--r-- | install/local_settings.py.sample | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/install/ishtar-prepare-instance b/install/ishtar-prepare-instance index 4ff469f69..3b6f25e88 100755 --- a/install/ishtar-prepare-instance +++ b/install/ishtar-prepare-instance @@ -217,6 +217,7 @@ EOF s|#DB_NAME#|$DB_NAME|g;\ s|#DB_PORT#|$DB_PORT|g;\ s|#DB_PASSWORD#|$DB_PASSWORD|g;\ + s|#URL#|$URL|g;\ s|#APP_DIR#|$APP_DIR|g;\ s|#SECRET_KEY#|$SECRET_KEY|g;" \ "install/local_settings.py.sample" > \ diff --git a/install/local_settings.py.sample b/install/local_settings.py.sample index f7d8089d8..0a81fa68b 100644 --- a/install/local_settings.py.sample +++ b/install/local_settings.py.sample @@ -15,12 +15,12 @@ MEDIA_ROOT = "#APP_DIR#/media/" ODT_TEMPLATE = "#INSTALL_PATH#/ishtar/ishtar_common/static/template.odt" +ALLOWED_HOSTS = ["#URL#"] + ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) -MANAGERS = ADMINS - DATABASES = { 'default': { 'ENGINE': 'django.contrib.gis.db.backends.postgis', |