2010-01-11 01:21:52 +08:00
|
|
|
# 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()}),
|
2010-10-19 07:58:06 +08:00
|
|
|
(r'^xview/func/$', views.xview_dec(views.xview)),
|
|
|
|
(r'^xview/class/$', views.xview_dec(views.XViewClass.as_view())),
|
2010-01-11 01:21:52 +08:00
|
|
|
)
|