diff -r ac11fee16880 -r 962b45987a02 settings.py --- a/settings.py Wed Sep 02 10:38:24 2009 -0400 +++ b/settings.py Wed Sep 02 20:17:47 2009 +0530 @@ -36,14 +36,16 @@ # to load the internationalization machinery. USE_I18N = True +ROOT_PATH = os.path.dirname(__file__) + # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" -MEDIA_ROOT = '' +MEDIA_ROOT = os.path.join(ROOT_PATH, 'site-content') # 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). # Examples: "http://media.lawrence.com", "http://example.com/media/" -MEDIA_URL = '' +MEDIA_URL = '/site-content/' # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a # trailing slash. @@ -69,7 +71,7 @@ ROOT_URLCONF = 'spoken_tut.urls' TEMPLATE_DIRS = ( - '/home/hg/repos/spoken_tut/template', + os.path.join(ROOT_PATH, 'template'), # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths.