Opened 13 years ago

Closed 13 years ago

#15864 closed Uncategorized (duplicate)

django generates strange error

Reported by: vadim dyadkin Owned by: nobody
Component: Uncategorized Version: 1.3-beta
Severity: Normal Keywords:
Cc: dyadkin@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I'm not sure it is a bug or not. If I add this string:


to any django's url (like, it generates error of this kind:

[Wed Apr 20 16:31:06 2011] [error] [client] mod_wsgi (pid=23117): Exception occurred processing WSGI script '/var/www/localhost/htdocs/fks2011/django.wsgi'.
[Wed Apr 20 16:31:06 2011] [error] [client] Traceback (most recent call last):
[Wed Apr 20 16:31:06 2011] [error] [client]   File "/usr/lib64/python2.7/site-packages/django/core/handlers/", line 264, in __call__
[Wed Apr 20 16:31:06 2011] [error] [client]     logger.warning('Bad Request (UnicodeDecodeError): %s' % request.path,
[Wed Apr 20 16:31:06 2011] [error] [client] UnboundLocalError: local variable 'request' referenced before assignment

instead of generating 404 (as it is for half of this strange string).

This works for all my django apps v1.3

Change History (2)

comment:1 by vadim dyadkin, 13 years ago

Cc: dyadkin@… added

comment:2 by vung, 13 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #15672

Note: See TracTickets for help on using tickets.
Back to Top