Django can't specify characters in urls?

I follow this thread and accept peppergrower code. But when I add the encrypted and quoted characters to the URL and try to access that URL, Django was unable to complete the following errors:

Traceback (last last call):

File "C: \ Python27 \ lib \ site-packages \ django \ core \ servers \ basehttp.py", line 283, in perspective self.result = application (self.environ, self.start_response)

File "C: \ python27 \ Lib \ site-packages \ Django \ apparently \ staticfiles \ handlers.py", line 68, in the call     return self.application (environ, start_response)

File "C: \ Python27 \ lib \ site-packages \ django \ core \ handlers \ wsgi.py", line 264, in a call to     logger.warning ('Bad Request (UnicodeDecodeError):% s'% request.path,

UnboundLocalError: local variable 'query' referenced previously Assignment

A sample URL of this type is http: // localhost: 8000 / customer / unsubscribe /% F1% CDE% A2% 9DL% BF% 21W% 60% FF% 04% D2% D2% 3B% B1% FB% C9% 8Ff% 89 % 06O% FFY% E2_% 16% 9BnPM / . I notice that as long as% appears in the url, Django throws exceptions. This does not make much sense, since quoted characters already have null codes.

I am using Django 1.3.1

+1
source share
1 answer

Django, https://code.djangoproject.com/ticket/16541 https://code.djangoproject.com/ticket/5738. , # 5738, :

, UTF-8 , ASCII, (, RFC 2396). RFC 3986 IRI URI.

, , UTF-8 URIs.

, , 400 ( UTF-8), , , - , WSGIRequestor ModPythonRequest URI, .

0

All Articles