PageRenderTime 58ms CodeModel.GetById 25ms RepoModel.GetById 0ms 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
Possible License(s): BSD-3-Clause
  1. from django.conf.urls.defaults import *
  2. from django.views.generic.simple import redirect_to
  3. import views
  4. urlpatterns = patterns('',
  5. (r'^get_view/$', views.get_view),
  6. (r'^post_view/$', views.post_view),
  7. (r'^header_view/$', views.view_with_header),
  8. (r'^raw_post_view/$', views.raw_post_view),
  9. (r'^redirect_view/$', views.redirect_view),
  10. (r'^secure_view/$', views.view_with_secure),
  11. (r'^permanent_redirect_view/$', redirect_to, {'url': '/test_client/get_view/'}),
  12. (r'^temporary_redirect_view/$', redirect_to, {'url': '/test_client/get_view/', 'permanent': False}),
  13. (r'^http_redirect_view/$', redirect_to, {'url': '/test_client/secure_view/'}),
  14. (r'^https_redirect_view/$', redirect_to, {'url': 'https://testserver/test_client/secure_view/'}),
  15. (r'^double_redirect_view/$', views.double_redirect_view),
  16. (r'^bad_view/$', views.bad_view),
  17. (r'^form_view/$', views.form_view),
  18. (r'^form_view_with_template/$', views.form_view_with_template),
  19. (r'^login_protected_view/$', views.login_protected_view),
  20. (r'^login_protected_method_view/$', views.login_protected_method_view),
  21. (r'^login_protected_view_custom_redirect/$', views.login_protected_view_changed_redirect),
  22. (r'^permission_protected_view/$', views.permission_protected_view),
  23. (r'^permission_protected_method_view/$', views.permission_protected_method_view),
  24. (r'^session_view/$', views.session_view),
  25. (r'^broken_view/$', views.broken_view),
  26. (r'^mail_sending_view/$', views.mail_sending_view),
  27. (r'^mass_mail_sending_view/$', views.mass_mail_sending_view)
  28. )