diff options
author | Ben Copeland <ben.copeland@linaro.org> | 2016-03-08 04:52:28 +0000 |
---|---|---|
committer | Ben Copeland <ben.copeland@linaro.org> | 2016-03-08 05:58:14 +0000 |
commit | a9c4a564dd80a0e59acf1743b44a422bb95c3072 (patch) | |
tree | 2f71aef2078ca2cd5d3b4821c8c6ff3bd616673b /settings_production.py | |
parent | 93511e46258a40b6d84fb3118cafba835767f51c (diff) |
allowed_hosts: allow llp code to use a hosts file
In process of getting LLP to GEO, we need define allowed addresses in
django, as the geo-dns address will be from multiple addresses.
Change-Id: I856a18a6b2dc1a5ab11cfaa0ef24147723da2825
Reviewed-on: https://review.linaro.org/10853
Reviewed-by: Andy Doan <andy.doan+gerrit@linaro.org>
Diffstat (limited to 'settings_production.py')
-rw-r--r-- | settings_production.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/settings_production.py b/settings_production.py index ef5f752..ebb69dc 100644 --- a/settings_production.py +++ b/settings_production.py @@ -14,6 +14,7 @@ DATABASES = { } } +ALLOWED_HOSTS_FILE = os.path.join(DEPLOYMENT_DIR, "allowed_hosts.txt") SERVED_PATHS = [os.path.join(DEPLOYMENT_DIR, 'www')] UPLOAD_PATH = os.path.join(DEPLOYMENT_DIR, 'uploads') FILE_UPLOAD_TEMP_DIR = '/srv/django-uploads' |