2006-09-02 17:34:40 +08:00
|
|
|
from django.conf.urls.defaults import *
|
2011-04-02 16:45:38 +08:00
|
|
|
from django.views.generic import RedirectView
|
2006-09-02 17:34:40 +08:00
|
|
|
import views
|
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
|
|
|
(r'^get_view/$', views.get_view),
|
|
|
|
(r'^post_view/$', views.post_view),
|
2008-07-12 14:16:42 +08:00
|
|
|
(r'^header_view/$', views.view_with_header),
|
2007-02-17 08:23:09 +08:00
|
|
|
(r'^raw_post_view/$', views.raw_post_view),
|
2006-09-02 17:34:40 +08:00
|
|
|
(r'^redirect_view/$', views.redirect_view),
|
2010-02-13 20:01:14 +08:00
|
|
|
(r'^secure_view/$', views.view_with_secure),
|
2011-04-02 16:45:38 +08:00
|
|
|
(r'^permanent_redirect_view/$', RedirectView.as_view(url='/test_client/get_view/')),
|
|
|
|
(r'^temporary_redirect_view/$', RedirectView.as_view(url='/test_client/get_view/', permanent=False)),
|
|
|
|
(r'^http_redirect_view/$', RedirectView.as_view(url='/test_client/secure_view/')),
|
|
|
|
(r'^https_redirect_view/$', RedirectView.as_view(url='https://testserver/test_client/secure_view/')),
|
2007-05-10 19:27:59 +08:00
|
|
|
(r'^double_redirect_view/$', views.double_redirect_view),
|
|
|
|
(r'^bad_view/$', views.bad_view),
|
2007-03-22 18:23:52 +08:00
|
|
|
(r'^form_view/$', views.form_view),
|
2007-05-07 20:34:18 +08:00
|
|
|
(r'^form_view_with_template/$', views.form_view_with_template),
|
2006-09-02 17:34:40 +08:00
|
|
|
(r'^login_protected_view/$', views.login_protected_view),
|
2007-11-08 06:45:07 +08:00
|
|
|
(r'^login_protected_method_view/$', views.login_protected_method_view),
|
2007-09-15 03:25:37 +08:00
|
|
|
(r'^login_protected_view_custom_redirect/$', views.login_protected_view_changed_redirect),
|
2007-11-08 06:45:07 +08:00
|
|
|
(r'^permission_protected_view/$', views.permission_protected_view),
|
|
|
|
(r'^permission_protected_method_view/$', views.permission_protected_method_view),
|
2007-02-11 08:23:31 +08:00
|
|
|
(r'^session_view/$', views.session_view),
|
2007-05-08 19:19:34 +08:00
|
|
|
(r'^broken_view/$', views.broken_view),
|
|
|
|
(r'^mail_sending_view/$', views.mail_sending_view),
|
|
|
|
(r'^mass_mail_sending_view/$', views.mass_mail_sending_view)
|
2006-09-02 17:34:40 +08:00
|
|
|
)
|