Re: Alpha Chars in dynamic url?

2008-07-10 Thread Norman Harman
lukeqsee wrote: > Thanks, it worked. > > On Jul 10, 1:48 pm, "Scott Moonen" <[EMAIL PROTECTED]> wrote: >> Luke, this should work. Here's an example I use: >> >> *urls.py:* >> url('^user/(?P\w+)/$', user.view) Not sure what you meant by "alpha chars" but \w+ matches more than just [A-Za-z]+ s

Re: Alpha Chars in dynamic url?

2008-07-10 Thread lukeqsee
Thanks, it worked. On Jul 10, 1:48 pm, "Scott Moonen" <[EMAIL PROTECTED]> wrote: > Luke, this should work.  Here's an example I use: > > *urls.py:* > url('^user/(?P\w+)/$', user.view) > > *views/user.py: > *def view(request, user_id) : >   user = get_object_or_404(User, username = user_id) > > Ho

Re: Alpha Chars in dynamic url?

2008-07-10 Thread Scott Moonen
Luke, this should work. Here's an example I use: *urls.py:* url('^user/(?P\w+)/$', user.view) *views/user.py: *def view(request, user_id) : user = get_object_or_404(User, username = user_id) Hope that helps, -- Scott On Thu, Jul 10, 2008 at 1:42 PM, lukeqsee <[EMAIL PROTECTED]> wrote: >

Re: Alpha Chars in dynamic url?

2008-07-10 Thread lukeqsee
Sorry I didn't my last post clear what I want is mysite.com/people/ {dynamic url ie. name)/ On Jul 10, 1:34 pm, lukeqsee <[EMAIL PROTECTED]> wrote: > Can you use alpha characters in the urls? like mysite.com/people/ > [name]/ > > Is this possible? Haven't found anything in the documentation relat

Alpha Chars in dynamic url?

2008-07-10 Thread lukeqsee
Can you use alpha characters in the urls? like mysite.com/people/ [name]/ Is this possible? Haven't found anything in the documentation relating to it. Thanks, Luke --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D