Re: Using decoupled urls.py and generic views

2007-09-14 Thread Nathaniel Whiteinge
Whoops, mind the typo. Should be:: urlpatterns = patterns("xgm.AbbrDB.views", (r"^$", "search"), ) urlpatterns += patterns("django.views.generic.list_detail", (r'^list/$', 'object_list', info_dict), ) --~--~-~--~~~---~--~~ You rece

Re: Using decoupled urls.py and generic views

2007-09-14 Thread Nathaniel Whiteinge
If you're only doing one or two, use callables [1]_ which will ignore your view prefix:: from django.conf.urls.defaults import * from models import Abbreviation import django.views.generic.list_detail.object_list as object_list info_dict = { "queryset": Abbreviation.objects.all()

Using decoupled urls.py and generic views

2007-09-14 Thread Florian Lindner
Hello, part 3 of the tutorial introduced how to decouple URL configuration into the app dir. At part 4 [1] generic views are introduced and the decoupled URL configuration: from django.conf.urls.defaults import * urlpatterns = patterns('mysite.polls.views', (r'^$', 'index'), (r'^(?P\d+