Re: parameter not getting passed to view function

2008-11-25 Thread Mahesh Vaidya
Thank You all for your help; yes there was error in RegEx. On Tue, Nov 25, 2008 at 10:01 AM, jai_python <[EMAIL PROTECTED]> wrote: > > modify ur url as > (r'^hello/(?P[^/]+\w*)/?', 'swamiji.poll.views.hello') > > http://localhost:8000/hello/TEST > then "print who" in ur view file. > > Lemme know

Re: parameter not getting passed to view function

2008-11-24 Thread jai_python
modify ur url as (r'^hello/(?P[^/]+\w*)/?', 'swamiji.poll.views.hello') http://localhost:8000/hello/TEST then "print who" in ur view file. Lemme know, if it fails to work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: parameter not getting passed to view function

2008-11-24 Thread Steve Holden
mahesh_aka_amol wrote: > Parameter not getting passed to view function > > upon accessing http://localhost:8000/hello/TEST it merely prints > "hello there" instead of "hello there TEST" > > urls.py > (r'^hello/(?P)\S+/$', 'swamiji.poll

Re: parameter not getting passed to view function

2008-11-24 Thread Ned Batchelder
Your URL regex is wrong, it should be: (r'^hello/(?P\S+)/$', 'swamiji.poll.views.hello') --Ned. http://nedbatchelder.com mahesh_aka_amol wrote: > Parameter not getting passed to view function > > upon accessing http://localhost:8000/hello/TEST it merely p

Re: parameter not getting passed to view function

2008-11-24 Thread David Zhou
On Mon, Nov 24, 2008 at 2:14 PM, mahesh_aka_amol <[EMAIL PROTECTED]> wrote: > > Parameter not getting passed to view function > > upon accessing http://localhost:8000/hello/TEST it merely prints > "hello there" instead of "hello there TES

parameter not getting passed to view function

2008-11-24 Thread mahesh_aka_amol
Parameter not getting passed to view function upon accessing http://localhost:8000/hello/TEST it merely prints "hello there" instead of "hello there TEST" urls.py (r'^hello/(?P)\S+/$', 'swamiji.poll.views.hello') Views.py def hello(request, who):