From: Marek Stępniowski Date: Sat, 6 Sep 2008 13:48:57 +0000 (+0200) Subject: Made MEDIA_URL relative to application URL. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/f6925ca9c2f8061e4a170577df07407990222a26?ds=sidebyside Made MEDIA_URL relative to application URL. --- diff --git a/settings.py b/settings.py index 5f0be969c..04b5fd568 100644 --- a/settings.py +++ b/settings.py @@ -44,7 +44,7 @@ MEDIA_ROOT = PROJECT_DIR + '/media/' # 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 = 'http://localhost:8000/media/' +MEDIA_URL = '/media/' # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a # trailing slash.