2 from __future__
import absolute_import
4 from django
.conf
.urls
import patterns
5 from django
.views
.generic
.list_detail
import object_detail
8 from .models
import Article
10 urlpatterns
= patterns('',
11 (r
'^special_headers/article/(?P<object_id>\d+)/$', object_detail
, {'queryset': Article
.objects
.all()}),
12 (r
'^special_headers/xview/func/$', views
.xview_dec(views
.xview
)),
13 (r
'^special_headers/xview/class/$', views
.xview_dec(views
.XViewClass
.as_view())),