PageRenderTime 270ms CodeModel.GetById 113ms app.highlight 5ms RepoModel.GetById 136ms app.codeStats 0ms

/tests/modeltests/test_client/urls.py

https://code.google.com/p/mango-py/
Python | 29 lines | 28 code | 1 blank | 0 comment | 0 complexity | b78e2184fa9b45096e2923a89ffe1279 MD5 | raw file
 1from django.conf.urls.defaults import *
 2from django.views.generic.simple import redirect_to
 3import views
 4
 5urlpatterns = patterns('',
 6    (r'^get_view/$', views.get_view),
 7    (r'^post_view/$', views.post_view),
 8    (r'^header_view/$', views.view_with_header),
 9    (r'^raw_post_view/$', views.raw_post_view),
10    (r'^redirect_view/$', views.redirect_view),
11    (r'^secure_view/$', views.view_with_secure),
12    (r'^permanent_redirect_view/$', redirect_to, {'url': '/test_client/get_view/'}),
13    (r'^temporary_redirect_view/$', redirect_to, {'url': '/test_client/get_view/', 'permanent': False}),
14    (r'^http_redirect_view/$', redirect_to, {'url': '/test_client/secure_view/'}),
15    (r'^https_redirect_view/$', redirect_to, {'url': 'https://testserver/test_client/secure_view/'}),
16    (r'^double_redirect_view/$', views.double_redirect_view),
17    (r'^bad_view/$', views.bad_view),
18    (r'^form_view/$', views.form_view),
19    (r'^form_view_with_template/$', views.form_view_with_template),
20    (r'^login_protected_view/$', views.login_protected_view),
21    (r'^login_protected_method_view/$', views.login_protected_method_view),
22    (r'^login_protected_view_custom_redirect/$', views.login_protected_view_changed_redirect),
23    (r'^permission_protected_view/$', views.permission_protected_view),
24    (r'^permission_protected_method_view/$', views.permission_protected_method_view),
25    (r'^session_view/$', views.session_view),
26    (r'^broken_view/$', views.broken_view),
27    (r'^mail_sending_view/$', views.mail_sending_view),
28    (r'^mass_mail_sending_view/$', views.mass_mail_sending_view)
29)