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 | d43d4752ad7728824c2084fb777148398f614c0d (patch) | |
tree | 615bbcc28df7cb030e324f632823bfdf896fc994 /install | |
parent | 7c3ce63559adb00132cc06684ad26b96e450ffcc (diff) | |
download | Ishtar-d43d4752ad7728824c2084fb777148398f614c0d.tar.bz2 Ishtar-d43d4752ad7728824c2084fb777148398f614c0d.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', |