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