changeset 2:920ba6593732

Normalize the paths in the settings.
author Brian Neal <bgneal@gmail.com>
date Thu, 27 Oct 2011 20:57:52 -0500
parents 134fbfc4acf6
children 71f2941161e9
files bns_website/settings/base.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bns_website/settings/base.py	Thu Oct 27 20:01:37 2011 -0500
+++ b/bns_website/settings/base.py	Thu Oct 27 20:57:52 2011 -0500
@@ -50,7 +50,7 @@
 
 # Absolute filesystem path to the directory that will hold user-uploaded files.
 # Example: "/home/media/media.lawrence.com/media/"
-MEDIA_ROOT = os.path.join(PROJECT_PATH, '..', 'media')
+MEDIA_ROOT = os.path.abspath(os.path.join(PROJECT_PATH, '..', 'media'))
 
 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
 # trailing slash.
@@ -61,7 +61,7 @@
 # Don't put anything in this directory yourself; store your static files
 # in apps' "static/" subdirectories and in STATICFILES_DIRS.
 # Example: "/home/media/media.lawrence.com/static/"
-STATIC_ROOT = os.path.join(PROJECT_PATH, '..', 'static')
+STATIC_ROOT = os.path.abspath(os.path.join(PROJECT_PATH, '..', 'static'))
 
 # URL prefix for static files.
 # Example: "http://media.lawrence.com/static/"