Re: reverse in urlpatterns

2009-12-12 Thread Baurzhan Ismagulov
Hello Javier, On Thu, Dec 10, 2009 at 09:04:10AM -0500, Javier Guerra wrote: > urlpatterns = patterns('', >... >(r'^apps/$', list_detail.object_list, > {'queryset': App.objects.all()}, > 'app-list')), > ) > > urlpatterns += patterns('', >(r'^app/new/$': create_update.create_ob

Re: reverse in urlpatterns

2009-12-10 Thread Javier Guerra
On Thu, Dec 10, 2009 at 7:10 AM, Baurzhan Ismagulov wrote: > When I try this, I get NoReverseMatch at /apps/: Reverse for 'app-list' > with arguments '()' and keyword arguments '{}' not found. > > I'd like to avoid hard-coding URLs. Is there a way to do that? the problem is that the call to reve

reverse in urlpatterns

2009-12-10 Thread Baurzhan Ismagulov
Hello, Can I use reverse() in urlpatterns, similar to the following? urlpatterns = patterns('', ... (r'^apps/$', list_detail.object_list, {'queryset': App.objects.all()}, 'app-list'), (r'^app/new/$': create_update.crea