Re: django url question

2011-01-17 Thread Matias Aguirre
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\w{3,4})/(?P.*)$', 'djprj.test

django url question

2011-01-17 Thread yanghq
hi, In urls.py a pattern like this: (r'^test/(?P\w{3,4})/(?P.*)$', '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 missin