PageRenderTime 19ms CodeModel.GetById 11ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/regressiontests/templates/urls.py

https://code.google.com/p/mango-py/
Python | 17 lines | 15 code | 1 blank | 1 comment | 0 complexity | 5651b7eb8dab80117a45de5d6de0a313 MD5 | raw file
 1# coding: utf-8
 2from django.conf.urls.defaults import *
 3from regressiontests.templates import views
 4
 5urlpatterns = patterns('',
 6
 7    # Test urls for testing reverse lookups
 8    (r'^$', views.index),
 9    (r'^client/([\d,]+)/$', views.client),
10    (r'^client/(?P<id>\d+)/(?P<action>[^/]+)/$', views.client_action),
11    (r'^client/(?P<client_id>\d+)/(?P<action>[^/]+)/$', views.client_action),
12    url(r'^named-client/(\d+)/$', views.client2, name="named.client"),
13
14    # Unicode strings are permitted everywhere.
15    url(ur'^??????/(\w+)/$', views.client2, name=u"?????_?????????"),
16    url(ur'^??????/(?P<tag>\S+)/$', 'regressiontests.templates.views.client2', name=u"?????_?????????_2"),
17)