2015-06-25 16:49:50 +00:00
|
|
|
|
from django.conf.urls import include, url
|
2011-10-13 21:34:56 +00:00
|
|
|
|
|
2015-01-28 12:35:27 +00:00
|
|
|
|
from . import views
|
2007-02-13 04:24:58 +00:00
|
|
|
|
|
2015-06-25 16:49:50 +00:00
|
|
|
|
ns_patterns = [
|
2007-02-13 04:24:58 +00:00
|
|
|
|
# Test urls for testing reverse lookups
|
2015-08-17 17:45:07 +00:00
|
|
|
|
url(r'^$', views.index, name='index'),
|
|
|
|
|
url(r'^client/([0-9,]+)/$', views.client, name='client'),
|
|
|
|
|
url(r'^client/(?P<id>[0-9]+)/(?P<action>[^/]+)/$', views.client_action, name='client_action'),
|
|
|
|
|
url(r'^client/(?P<client_id>[0-9]+)/(?P<action>[^/]+)/$', views.client_action, name='client_action'),
|
2014-04-14 18:12:44 +00:00
|
|
|
|
url(r'^named-client/([0-9]+)/$', views.client2, name="named.client"),
|
2015-06-25 16:49:50 +00:00
|
|
|
|
]
|
|
|
|
|
|
2007-07-07 18:24:27 +00:00
|
|
|
|
|
2015-06-25 16:49:50 +00:00
|
|
|
|
urlpatterns = ns_patterns + [
|
2007-07-07 18:24:27 +00:00
|
|
|
|
# Unicode strings are permitted everywhere.
|
2012-06-07 16:08:47 +00:00
|
|
|
|
url(r'^Юникод/(\w+)/$', views.client2, name="метка_оператора"),
|
2014-08-12 14:54:42 +00:00
|
|
|
|
url(r'^Юникод/(?P<tag>\S+)/$', views.client2, name="метка_оператора_2"),
|
2015-06-25 16:49:50 +00:00
|
|
|
|
|
|
|
|
|
# Test urls for namespaces and current_app
|
|
|
|
|
url(r'ns1/', include((ns_patterns, 'app'), 'ns1')),
|
|
|
|
|
url(r'ns2/', include((ns_patterns, 'app'))),
|
2014-04-02 00:46:34 +00:00
|
|
|
|
]
|