mirror of
https://github.com/django/django.git
synced 2024-11-18 23:44:22 +00:00
2790cf482d
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14269 bcc190cf-cafb-0310-a4f2-bffc1f526a37
12 lines
401 B
Python
12 lines
401 B
Python
# 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())),
|
|
)
|