On 01/19/12 03:36, Django Newbie wrote:
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.
I believe by default the regexps are case-sensitive, so if you're asking for "jan" it might work, while asking for "Jan" will likely fail. Try using "[a-zA-Z]" instead.
-tkc -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. 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.

