Ticket #8393: 8393-r8431.diff

File 8393-r8431.diff, 990 bytes (added by Joost Cassee, 16 years ago)
  • django/test/client.py

     
    88
    99from django.conf import settings
    1010from django.contrib.auth import authenticate, login
     11from django.core.handlers import base
    1112from django.core.handlers.base import BaseHandler
    1213from django.core.handlers.wsgi import WSGIRequest
    1314from django.core.signals import got_request_exception
     15from django.core.urlresolvers import set_script_prefix
    1416from django.http import SimpleCookie, HttpRequest
    1517from django.template import TemplateDoesNotExist
    1618from django.test import signals
     
    5355        from django.conf import settings
    5456        from django.core import signals
    5557
     58        set_script_prefix(base.get_script_name(environ))
     59
    5660        # Set up middleware if needed. We couldn't do this earlier, because
    5761        # settings weren't available.
    5862        if self._request_middleware is None:
Back to Top