mirror of
https://github.com/django/django.git
synced 2024-11-18 23:44:22 +00:00
26b8122087
This applies to both our own [test] code and documentation examples. Also: * Moved the functions and handlers from `django.conf.urls.defaults` up to `django.conf.urls` deprecating the former module. * Added documentation for `handler403`. * Tweaked the URLs topic document a bit. Thanks to pupeno and cdestigter for their great work contributing patches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16818 bcc190cf-cafb-0310-a4f2-bffc1f526a37
18 lines
733 B
Python
18 lines
733 B
Python
# coding: utf-8
|
||
from django.conf.urls import patterns, url
|
||
from regressiontests.templates import views
|
||
|
||
urlpatterns = patterns('',
|
||
|
||
# Test urls for testing reverse lookups
|
||
(r'^$', views.index),
|
||
(r'^client/([\d,]+)/$', views.client),
|
||
(r'^client/(?P<id>\d+)/(?P<action>[^/]+)/$', views.client_action),
|
||
(r'^client/(?P<client_id>\d+)/(?P<action>[^/]+)/$', views.client_action),
|
||
url(r'^named-client/(\d+)/$', views.client2, name="named.client"),
|
||
|
||
# Unicode strings are permitted everywhere.
|
||
url(ur'^Юникод/(\w+)/$', views.client2, name=u"метка_оператора"),
|
||
url(ur'^Юникод/(?P<tag>\S+)/$', 'regressiontests.templates.views.client2', name=u"метка_оператора_2"),
|
||
)
|