aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2016-02-25 23:03:27 +0200
committerFilipp Lepalaan <filipp@mac.com>2016-02-25 23:03:27 +0200
commitd7b1aff640ae7c5a9364fc1f76c7245d260ee522 (patch)
tree05e186cd7456f381f36dcca92d10cd1be9a6725d
parent7e5d7b1055f11551fc253b1ddccdb6d69ffdc061 (diff)
downloadServo-d7b1aff640ae7c5a9364fc1f76c7245d260ee522.tar.gz
Servo-d7b1aff640ae7c5a9364fc1f76c7245d260ee522.tar.bz2
Servo-d7b1aff640ae7c5a9364fc1f76c7245d260ee522.zip
Use absolute paths for GSX_CERT and KEY
For execution from outside the app (cron jobs and whatnot)
-rw-r--r--settings.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings.py b/settings.py
index 4776ef2..0d513f3 100644
--- a/settings.py
+++ b/settings.py
@@ -216,8 +216,8 @@ ENABLE_RULES = False
TIMEZONE = 'Europe/Helsinki'
BACKUP_DIR = os.path.join(BASE_DIR, 'backups')
-GSX_CERT = 'uploads/settings/gsx_cert.pem'
-GSX_KEY = 'uploads/settings/gsx_key.pem'
+GSX_CERT = os.path.join(BASE_DIR, 'uploads/settings/gsx_cert.pem')
+GSX_KEY = os.path.join(BASE_DIR, 'uploads/settings/gsx_key.pem')
os.environ['GSX_CERT'] = GSX_CERT
os.environ['GSX_KEY'] = GSX_KEY