2014-04-02 02:46:34 +02:00
|
|
|
from django.conf.urls import include, url
|
2013-11-21 08:48:29 +01:00
|
|
|
from django.contrib import admin
|
2013-05-18 17:43:21 +02:00
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
2015-05-28 17:25:52 +02:00
|
|
|
ns_patterns = ([
|
2013-11-05 10:16:27 +01:00
|
|
|
url(r'^xview/func/$', views.xview_dec(views.xview), name='func'),
|
2015-05-28 17:25:52 +02:00
|
|
|
], 'test')
|
2013-11-05 10:16:27 +01:00
|
|
|
|
2014-04-02 02:46:34 +02:00
|
|
|
urlpatterns = [
|
2015-05-28 17:25:52 +02:00
|
|
|
url(r'^admin/', admin.site.urls),
|
2014-04-02 02:46:34 +02:00
|
|
|
url(r'^admindocs/', include('django.contrib.admindocs.urls')),
|
|
|
|
url(r'^', include(ns_patterns, namespace='test')),
|
|
|
|
url(r'^xview/func/$', views.xview_dec(views.xview)),
|
|
|
|
url(r'^xview/class/$', views.xview_dec(views.XViewClass.as_view())),
|
|
|
|
]
|