Autodetect media locations for debug

This commit is contained in:
2011-03-11 17:09:47 +00:00
parent ae15e5eccc
commit 6561ef5312

View File

@@ -39,7 +39,7 @@ USE_I18N = True
# Absolute path to the directory that holds media. # Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/" # 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 # 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). # trailing slash if there is a path component (optional in other cases).