2014-05-16 01:41:55 +08:00
|
|
|
|
# -*- coding: utf-8 -*-
|
2013-07-30 01:19:04 +08:00
|
|
|
|
from __future__ import unicode_literals
|
2011-10-14 05:34:56 +08:00
|
|
|
|
|
2011-09-12 06:36:16 +08:00
|
|
|
|
from django.conf.urls import patterns, url
|
2011-10-14 05:34:56 +08:00
|
|
|
|
from . import views
|
|
|
|
|
|
2007-02-13 12:24:58 +08:00
|
|
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
|
|
|
|
|
|
|
|
|
# Test urls for testing reverse lookups
|
|
|
|
|
(r'^$', views.index),
|
2010-04-10 15:35:31 +08:00
|
|
|
|
(r'^client/([\d,]+)/$', views.client),
|
2007-10-27 14:23:05 +08:00
|
|
|
|
(r'^client/(?P<id>\d+)/(?P<action>[^/]+)/$', views.client_action),
|
2010-04-10 15:35:31 +08:00
|
|
|
|
(r'^client/(?P<client_id>\d+)/(?P<action>[^/]+)/$', views.client_action),
|
2008-10-05 12:59:55 +08:00
|
|
|
|
url(r'^named-client/(\d+)/$', views.client2, name="named.client"),
|
2007-07-08 02:24:27 +08:00
|
|
|
|
|
|
|
|
|
# Unicode strings are permitted everywhere.
|
2012-06-08 00:08:47 +08:00
|
|
|
|
url(r'^Юникод/(\w+)/$', views.client2, name="метка_оператора"),
|
2013-02-26 20:19:18 +08:00
|
|
|
|
url(r'^Юникод/(?P<tag>\S+)/$', 'template_tests.views.client2', name="метка_оператора_2"),
|
2007-02-13 12:24:58 +08:00
|
|
|
|
)
|