Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Improved the fix of r17416 so it actually works on all platforms. Ref…

…s #17469.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17417 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ccbadbc5c2255629abb7f84f1aead4c9b1dc86d4 1 parent dcbd5ee
@aaugustin aaugustin authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/test/testcases.py
View
4 django/test/testcases.py
@@ -998,8 +998,8 @@ def get_base_url(self):
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):
Please sign in to comment.
Something went wrong with that request. Please try again.