aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Copeland <ben.copeland@linaro.org>2017-08-02 13:50:05 +0100
committerBen Copeland <ben.copeland@linaro.org>2017-08-03 09:16:53 +0000
commitfaf89bfbfde91a82fa19d4ca48b24235f16dc38f (patch)
tree74ac7ad2d7d3695a52424ad3ae26f909fac60236
parent8dfa8a83523dc5076c9e54deeb6495e185d11d2e (diff)
downloadlinaro-license-protection-faf89bfbfde91a82fa19d4ca48b24235f16dc38f.tar.gz
Settings: Remove the need to use django-uploads due to being on S3
Change-Id: I73f0814c8f4f92dd908a1b17fb9e23c93180d2e7 Reviewed-on: https://review.linaro.org/20844 Reviewed-by: Andy Doan <andy.doan@linaro.org>
-rw-r--r--settings_production.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/settings_production.py b/settings_production.py
index c0783c6..8129db1 100644
--- a/settings_production.py
+++ b/settings_production.py
@@ -17,7 +17,6 @@ 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'
IP2LOCATION_FILE = os.path.join(
DEPLOYMENT_DIR, 'IP-COUNTRY-REGION-CITY-ISP.BIN')
@@ -34,10 +33,6 @@ if os.path.exists(os.path.join(DEPLOYMENT_DIR, 'header_override.html')):
if os.path.exists(os.path.join(DEPLOYMENT_DIR, 'secrets.py')):
execfile(os.path.join(DEPLOYMENT_DIR, 'secrets.py'))
-# make sure django directory exists
-if not os.path.isdir(FILE_UPLOAD_TEMP_DIR):
- raise RuntimeError('Missing Django upload dir')
-
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',