Re: question about django url

2010-10-09 Thread sami nathan
http://local host/wap/di/sub?word=check&type=00&submit=Submit i want to print word "check" and any word given in url pls give sugesstion pls -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@go

Re: question about django url

2010-10-09 Thread smallfish
like this: http://127.0.0.1:8000/xxx/123243-1-2-3-0/ urls.py (r"^xxx/(\d+)-([0-4])-([0-4])-([0-4])-([0-4])/$", "polls.views.hello"), polls/views.py def hello(request, s1, s2, s3, s4, s5): return HttpResponse("%s - %s - %s - %s - %s" % (s1, s2, s3, s4, s5)) -- blog: http://chenxiaoyu.o

question about django url

2010-10-08 Thread newlife
In my application ,there is a url like this: """ xxx.com/xxx/s1-s2-s3-s4-s5/ """ 1: s1 .. s5 ,they are all numbers; 2: s1 must be there 3: the others like "-s2" can be zero to 4 how should I write this url??? any suggestion is welcome. thanks ~ -- You received this message because you are sub