id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 10787 debug.py Templates: Request URLs Should Include django.root Rick Wagner nobody "Hi, In a few place in [browser:django/trunk/django/views/debug.py] a string is built to show the request, like so: {{{ Request URL: {{ request_protocol }}://{{ request.META.HTTP_HOST }}{{ request.path_info|escape }} }}} However, {{{request.path_info}}} is only relative to root URL of which ever settings module is being used. To correct this, the script name (e.g., {{{django.root}}} for Apache and mod_python), should be added. {{{ Request URL: {{ request_protocol }}://{{ request.META.HTTP_HOST }}{{ request.META.SCRIPT_NAME }}{{ request.path_info|escape }} }}} One way to do this would be to modify {{{request.path_info}}}, but I don't think that would be correct. In particular, when listing a 404, the URLs shown should probably only be those be checked for matches, which are ""below"" the root URL. But, anywhere that lists the protocol, host, and path, should be corrected to match what's in the browser (or queried by a script, etc.). From what I can see, the following lines should be updated: * [browser:django/trunk/django/views/debug.py#L402 402] * [browser:django/trunk/django/views/debug.py#L532 532] * [browser:django/trunk/django/views/debug.py#L744 744] I'm hesitating on provding a patch, since I'm not sure if {{{request.META['SCRIPT_NAME']}}} is always set, and where the trailing slashes are. --Rick " closed Generic views dev duplicate debug Accepted 0 0 0 0 0 0