Improved the fix of r17416 so it actually works on all platforms. Refs #17469.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17417 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Aymeric Augustin 2012-02-01 21:36:18 +00:00
parent dcbd5eefd6
commit ccbadbc5c2
1 changed files with 2 additions and 2 deletions

View File

@ -998,8 +998,8 @@ class _MediaFilesHandler(StaticFilesHandler):
return settings.MEDIA_URL
def serve(self, request):
return serve(request, request.path,
document_root=self.get_base_dir())
relative_url = request.path[len(self.base_url[2]):]
return serve(request, relative_url, document_root=self.get_base_dir())
class LiveServerThread(threading.Thread):