PageRenderTime 33ms CodeModel.GetById 17ms app.highlight 11ms RepoModel.GetById 2ms app.codeStats 0ms

/tests/regressiontests/test_client_regress/urls.py

https://code.google.com/p/mango-py/
Python | 31 lines | 30 code | 1 blank | 0 comment | 0 complexity | e918a7053303afd540ae45a6b61d7ff3 MD5 | raw file
 1from django.conf.urls.defaults import *
 2from django.views.generic.simple import redirect_to
 3import views
 4
 5urlpatterns = patterns('',
 6    (r'^no_template_view/$', views.no_template_view),
 7    (r'^staff_only/$', views.staff_only_view),
 8    (r'^get_view/$', views.get_view),
 9    (r'^request_data/$', views.request_data),
10    (r'^request_data_extended/$', views.request_data, {'template':'extended.html', 'data':'bacon'}),
11    url(r'^arg_view/(?P<name>.+)/$', views.view_with_argument, name='arg_view'),
12    (r'^login_protected_redirect_view/$', views.login_protected_redirect_view),
13    (r'^redirects/$', redirect_to, {'url': '/test_client_regress/redirects/further/'}),
14    (r'^redirects/further/$', redirect_to, {'url': '/test_client_regress/redirects/further/more/'}),
15    (r'^redirects/further/more/$', redirect_to, {'url': '/test_client_regress/no_template_view/'}),
16    (r'^redirect_to_non_existent_view/$', redirect_to, {'url': '/test_client_regress/non_existent_view/'}),
17    (r'^redirect_to_non_existent_view2/$', redirect_to, {'url': '/test_client_regress/redirect_to_non_existent_view/'}),
18    (r'^redirect_to_self/$', redirect_to, {'url': '/test_client_regress/redirect_to_self/'}),
19    (r'^circular_redirect_1/$', redirect_to, {'url': '/test_client_regress/circular_redirect_2/'}),
20    (r'^circular_redirect_2/$', redirect_to, {'url': '/test_client_regress/circular_redirect_3/'}),
21    (r'^circular_redirect_3/$', redirect_to, {'url': '/test_client_regress/circular_redirect_1/'}),
22    (r'^set_session/$', views.set_session_view),
23    (r'^check_session/$', views.check_session_view),
24    (r'^request_methods/$', views.request_methods_view),
25    (r'^check_unicode/$', views.return_unicode),
26    (r'^parse_unicode_json/$', views.return_json_file),
27    (r'^check_headers/$', views.check_headers),
28    (r'^check_headers_redirect/$', redirect_to, {'url': '/test_client_regress/check_headers/'}),
29    (r'^raw_post_data/$', views.raw_post_data),
30    (r'^request_context_view/$', views.request_context_view),
31)