2013-11-05 09:16:27 +00:00
|
|
|
from django.conf.urls import include, patterns, url
|
2013-11-21 07:48:29 +00:00
|
|
|
from django.contrib import admin
|
2013-05-18 15:43:21 +00:00
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
2013-11-05 09:16:27 +00:00
|
|
|
ns_patterns = patterns('',
|
|
|
|
url(r'^xview/func/$', views.xview_dec(views.xview), name='func'),
|
|
|
|
)
|
|
|
|
|
2013-05-18 15:43:21 +00:00
|
|
|
urlpatterns = patterns('',
|
2013-11-21 07:48:29 +00:00
|
|
|
(r'^admin/', include(admin.site.urls)),
|
2013-06-18 00:10:21 +00:00
|
|
|
(r'^admindocs/', include('django.contrib.admindocs.urls')),
|
2013-11-05 09:16:27 +00:00
|
|
|
(r'^', include(ns_patterns, namespace='test')),
|
2013-05-18 15:43:21 +00:00
|
|
|
(r'^xview/func/$', views.xview_dec(views.xview)),
|
|
|
|
(r'^xview/class/$', views.xview_dec(views.XViewClass.as_view())),
|
|
|
|
)
|