# HG changeset patch # User Brian Neal # Date 1319767072 18000 # Node ID 920ba6593732b38893aa93133cbd8ec673be8a8d # Parent 134fbfc4acf6d4dce6e25ab6af984985f4fffb2d Normalize the paths in the settings. diff -r 134fbfc4acf6 -r 920ba6593732 bns_website/settings/base.py --- 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/"