This borks query-string handling. ['REQUEST_URI'] includes the query
string.
instead:
self.path = environ['SCRIPT_NAME'] + environ['PATH_INFO']
On Feb 13, 5:41 pm, "mulc" <[EMAIL PROTECTED]> wrote:
> OK.
>
> I hacked django/core/handlers/wsgi.py. ( line #56 )
>
> In the __init__ function of WSGIRequest I changed:
>
> self.path = environ['PATH_INFO']
>
> to
>
> self.path = environ['REQUEST_URI']
>
> I then changed up my urls.py
>
> (r'^admin/', include('django.contrib.admin.urls')),
>
> becomes
>
> (r'/admin/?', include('django.contrib.admin.urls')),
>
> This appears to do what I want.
>
> No obvious breakage yet, but I haven't really done anything other than
> tool through the admin interface at /SCGI/admin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---