From 6561ef5312da5b443aae58f93c24b00f553dfae1 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Fri, 11 Mar 2011 17:09:47 +0000 Subject: [PATCH] Autodetect media locations for debug --- app/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/settings.py b/app/settings.py index 401cc63..e159db7 100755 --- a/app/settings.py +++ b/app/settings.py @@ -39,7 +39,7 @@ USE_I18N = True # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" -MEDIA_ROOT = './media' +MEDIA_ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), '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).