Your URL regex is wrong, it should be: (r'^hello/(?P<who>\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 prints > "hello there" instead of "hello there TEST" > > urls.py > (r'^hello/(?P<who>)\S+/$', 'swamiji.poll.views.hello') > > > Views.py > > def hello(request, who): > return HttpResponse("hello there %s" % who) > > --- > Thank You. > > > > > > -- Ned Batchelder, http://nedbatchelder.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---