mirror of https://github.com/django/django.git
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:
parent
dcbd5eefd6
commit
ccbadbc5c2
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue