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
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
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
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
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
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):
6 matches
Mail list logo