The '?' should be quoted as '%3F' (urllib.urlquote('?')) or it will be treated
as a query parameter (check request.GET in your view ;))

Matías

Excerpts from yanghq's message of Mon Jan 17 05:59:23 -0200 2011:
> hi,
> 
>  In urls.py a pattern like this:
> (r'^test/(?P<protocol>\w{3,4})/(?P<url>.*)$', 'djprj.test.views.info'),
> 
> In views.py,info defined as follows:
> def info(request,protocol='',url=''):
>     ........
> 
> when I access "test/http/bbs.test.com/viewforum.php?f=12"
> 
> url is bbs.test.com/viewforum.php,"?f=12" is missing
> 
> can someone explain this? than you for any help
> 
> 
> ---------------------------------------------------------------------------------------------------
> Confidentiality Notice: The information contained in this e-mail and any 
> accompanying attachment(s) 
> is intended only for the use of the intended recipient and may be 
> confidential and/or privileged of 
> Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of 
> this communication is 
> not the intended recipient, unauthorized use, forwarding, printing,  storing, 
> disclosure or copying 
> is strictly prohibited, and may be unlawful.If you have received this 
> communication in error,please 
> immediately notify the sender by return e-mail, and delete the original 
> message and all copies from 
> your system. Thank you. 
-- 
Matías Aguirre <matiasagui...@gmail.com>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to