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