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
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()
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+
3 matches
Mail list logo