Hi,

I am trying to figure out a way to call a function depending on the
parameter in the URL.

Example.
url(r'^People/Info/(?P<pID>\d+)/$', 'iFriends.People.views.details'),
url(r'^People/Info/(?P<pName>[a-z]{3})/$',
'iFriends.People.views.detail_name'),

It works with numeric value. <pID> if I use "http://localhost:8000/
People/Info/1/"

but not with <pName> if I use http://localhost:8000/People/Info/Jan/

probably something small but still leaning.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to