comparison bns_website/settings/base.py @ 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
comparison
equal deleted inserted replaced
1:134fbfc4acf6 2:920ba6593732
48 # calendars according to the current locale 48 # calendars according to the current locale
49 USE_L10N = True 49 USE_L10N = True
50 50
51 # Absolute filesystem path to the directory that will hold user-uploaded files. 51 # Absolute filesystem path to the directory that will hold user-uploaded files.
52 # Example: "/home/media/media.lawrence.com/media/" 52 # Example: "/home/media/media.lawrence.com/media/"
53 MEDIA_ROOT = os.path.join(PROJECT_PATH, '..', 'media') 53 MEDIA_ROOT = os.path.abspath(os.path.join(PROJECT_PATH, '..', 'media'))
54 54
55 # URL that handles the media served from MEDIA_ROOT. Make sure to use a 55 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
56 # trailing slash. 56 # trailing slash.
57 # Examples: "http://media.lawrence.com/media/", "http://example.com/media/" 57 # Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
58 MEDIA_URL = '/media/' 58 MEDIA_URL = '/media/'
59 59
60 # Absolute path to the directory static files should be collected to. 60 # Absolute path to the directory static files should be collected to.
61 # Don't put anything in this directory yourself; store your static files 61 # Don't put anything in this directory yourself; store your static files
62 # in apps' "static/" subdirectories and in STATICFILES_DIRS. 62 # in apps' "static/" subdirectories and in STATICFILES_DIRS.
63 # Example: "/home/media/media.lawrence.com/static/" 63 # Example: "/home/media/media.lawrence.com/static/"
64 STATIC_ROOT = os.path.join(PROJECT_PATH, '..', 'static') 64 STATIC_ROOT = os.path.abspath(os.path.join(PROJECT_PATH, '..', 'static'))
65 65
66 # URL prefix for static files. 66 # URL prefix for static files.
67 # Example: "http://media.lawrence.com/static/" 67 # Example: "http://media.lawrence.com/static/"
68 STATIC_URL = '/static/' 68 STATIC_URL = '/static/'
69 69