summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@pelagicore.com>2015-09-29 17:35:28 +0200
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2015-10-19 14:27:57 +0200
commit7208b0beffe52a2b6a7fce5a90b3441de95a3ae9 (patch)
tree4dd58addfc3182560d73ea9cdee995385de7dda8
parentccc2be26cc311efabdf563a8e64cc5e352507d82 (diff)
Compute MEDIA_ROOT, so you do not have to set it manually when deploying
-rw-r--r--appstore/settings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/appstore/settings.py b/appstore/settings.py
index 82194d7..d800f4d 100644
--- a/appstore/settings.py
+++ b/appstore/settings.py
@@ -95,7 +95,7 @@ STATIC_URL = '/static/'
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
-MEDIA_ROOT = '/home/sandman/git/appstore-server/media/'
+MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).