PageRenderTime 20ms CodeModel.GetById 15ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/regressiontests/special_headers/urls.py

https://code.google.com/p/mango-py/
Python | 11 lines | 9 code | 1 blank | 1 comment | 0 complexity | ad795bec4daa47a95afc6a5ef31d65a5 MD5 | raw file
 1# coding: utf-8
 2from django.conf.urls.defaults import *
 3from django.views.generic.list_detail import object_detail
 4from models import Article
 5import views
 6
 7urlpatterns = patterns('',
 8    (r'^article/(?P<object_id>\d+)/$', object_detail, {'queryset': Article.objects.all()}),
 9    (r'^xview/func/$', views.xview_dec(views.xview)),
10    (r'^xview/class/$', views.xview_dec(views.XViewClass.as_view())),
11)