mirror of
https://github.com/django/django.git
synced 2024-12-24 18:16:19 +00:00
8c85ddf306
Also included a test for non-ASCII strings in URL patterns, although that already worked correctly. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5630 bcc190cf-cafb-0310-a4f2-bffc1f526a37
16 lines
514 B
Python
16 lines
514 B
Python
# coding: utf-8
|
||
from django.conf.urls.defaults import *
|
||
from regressiontests.templates import views
|
||
|
||
urlpatterns = patterns('',
|
||
|
||
# Test urls for testing reverse lookups
|
||
(r'^$', views.index),
|
||
(r'^client/(\d+)/$', views.client),
|
||
(r'^client/(\d+)/(?P<action>[^/]+)/$', views.client_action),
|
||
url(r'^named-client/(\d+)/$', views.client, name="named.client"),
|
||
|
||
# Unicode strings are permitted everywhere.
|
||
url(ur'^Юникод/(\w+)/$', views.client, name=u"метка_оператора"),
|
||
)
|