ve_index', dict(info_dict, template_name='blog/list.html')),
>
>
>
>
>
> What URL do you enter when you get the error?
>
>
>
> Regards
>
> Chris
>
>
>
> -Original Message-----
>
> From: django-users@googlegroups.com [mailto:django-users@
s.com [mailto:django-users@googlegroups.com] On
Behalf Of Antti
Sent: 23 February 2011 06:56
To: Django users
Subject: Re: urls.py and views.generic issue
Thanks jnns for the response. I tried adding the backslash but it
still doesn't match. Would I need to put a different character
gt;
>
>
>
> -Original Message-
> From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On
> Behalf Of jnns
> Sent: 20 February 2011 03:07
> To: Django users
> Subject: Re: urls.py and views.generic issue
>
> Hi Antti,
>
> the url
Thanks jnns for the response. I tried adding the backslash but it
still doesn't match. Would I need to put a different character after
the other entries in the expression? What I mean would there be a
different character used in "(?P\[a-z]{3})" ? Also one more
note if I type in
Subject: Re: urls.py and views.generic issue
Hi Antti,
the url patterns in the tutorial are not correct. The regular
expressions are not using character classes but merely plain
characters.
^blog/ ^(?Pd{4})/$
should be
^blog/ ^(?P\d{4})/$
Mind the backslash in \d{4}. This way we're
Hi Antti,
the url patterns in the tutorial are not correct. The regular
expressions are not using character classes but merely plain
characters.
^blog/ ^(?Pd{4})/$
should be
^blog/ ^(?P\d{4})/$
Mind the backslash in \d{4}. This way we're matching for a sequence of
four digits and not for a
6 matches
Mail list logo