Re: urls.py and views.generic issue

2011-02-23 Thread Andrew Petaisto
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@

RE: urls.py and views.generic issue

2011-02-22 Thread Chris Matthews
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

Re: urls.py and views.generic issue

2011-02-22 Thread Antti
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

Re: urls.py and views.generic issue

2011-02-22 Thread Antti
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

RE: urls.py and views.generic issue

2011-02-20 Thread Chris Matthews
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

Re: urls.py and views.generic issue

2011-02-19 Thread jnns
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