From f6925ca9c2f8061e4a170577df07407990222a26 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Sat, 6 Sep 2008 15:48:57 +0200 Subject: [PATCH] Made MEDIA_URL relative to application URL. --- settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.20.1