From e8d0c8b07a306be543abcbb9d9ddeda925e6738b Mon Sep 17 00:00:00 2001 From: Hidden Z Date: Fri, 5 Nov 2010 11:57:23 +0000 Subject: [PATCH] pyi2phosts/settings.py: define default media root and url --- pyi2phosts/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyi2phosts/settings.py b/pyi2phosts/settings.py index 24a757e..303d172 100644 --- a/pyi2phosts/settings.py +++ b/pyi2phosts/settings.py @@ -48,12 +48,12 @@ USE_L10N = True # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" -MEDIA_ROOT = '' +MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'static/') # 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 = '/static/' # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a # trailing slash.