Ejemplo n.º 1
0
# coding: utf-8
from django.conf.urls import patterns
from django.views.generic.list_detail import object_detail
from models import Article
import views

urlpatterns = patterns('',
    (r'^special_headers/article/(?P<object_id>\d+)/$', object_detail, {'queryset': Article.objects.all()}),
    (r'^special_headers/xview/func/$', views.xview_dec(views.xview)),
    (r'^special_headers/xview/class/$', views.xview_dec(views.XViewClass.as_view())),
)
Ejemplo n.º 2
0
# coding: utf-8
from django.conf.urls.defaults import *
from django.views.generic.list_detail import object_detail
from models import Article
import views

urlpatterns = patterns('',
    (r'^article/(?P<object_id>\d+)/$', object_detail, {'queryset': Article.objects.all()}),
    (r'^xview/func/$', views.xview_dec(views.xview)),
    (r'^xview/class/$', views.xview_dec(views.XViewClass.as_view())),
)
Ejemplo n.º 3
0
# coding: utf-8
from django.conf.urls.defaults import *
from django.views.generic.list_detail import object_detail
from models import Article
import views

urlpatterns = patterns(
    '',
    (r'^special_headers/article/(?P<object_id>\d+)/$', object_detail, {
        'queryset': Article.objects.all()
    }),
    (r'^special_headers/xview/func/$', views.xview_dec(views.xview)),
    (r'^special_headers/xview/class/$',
     views.xview_dec(views.XViewClass.as_view())),
)
Ejemplo n.º 4
0
# coding: utf-8
from django.conf.urls.defaults import *
from django.views.generic.list_detail import object_detail
from models import Article
import views

urlpatterns = patterns('',
    (r'^article/(?P<object_id>\d+)/$', object_detail, {'queryset': Article.objects.all()}),
    (r'^xview/func/$', views.xview_dec(views.xview)),
    (r'^xview/class/$', views.xview_dec(views.XViewClass.as_view())),
)