Just as I thought, such a simple thing.

Thanks, very much now it's working. :)

On 16 Lip, 15:03, Nuno Maltez <nuno.li...@gmail.com> wrote:
> On Fri, Jul 16, 2010 at 1:56 PM, maciekjbl <maciej....@gmail.com> wrote:
> > urlpatterns = patterns('django.views.generic.list_detail',
> >    url(r'^(?P<slug>[-\w]+)/$', 'object_detail', info, name="link-
> > prod"),
> >    url(r'^$','object_list', info, name="link-home"),
>
> > )
>
> > urlpatterns += patterns('web_aplikacje.produkty.views',
> >   url(r'^search/$', 'search', name="link-search"),
> > )
>
> I think your '/search/' url is being caught by your
> "r'^(?P<slug>[-\w]+)/$" pattern and object_detail cannot find an
> object with a 'search' slug.
>
> Try to place the search pattern before the generic slug one.
>
> hth,
> Nuno

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to