2014-04-02 08:46:34 +08:00
|
|
|
from django.conf.urls import url
|
2014-08-12 22:54:42 +08:00
|
|
|
from django.contrib.auth import views as auth_views
|
2011-04-02 16:45:38 +08:00
|
|
|
from django.views.generic import RedirectView
|
2011-10-14 02:04:12 +08:00
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
2006-09-02 17:34:40 +08:00
|
|
|
|
2014-04-02 08:46:34 +08:00
|
|
|
urlpatterns = [
|
2014-06-06 22:49:02 +08:00
|
|
|
url(r'^get_view/$', views.get_view, name='get_view'),
|
2014-04-02 08:46:34 +08:00
|
|
|
url(r'^post_view/$', views.post_view),
|
|
|
|
url(r'^header_view/$', views.view_with_header),
|
|
|
|
url(r'^raw_post_view/$', views.raw_post_view),
|
|
|
|
url(r'^redirect_view/$', views.redirect_view),
|
|
|
|
url(r'^secure_view/$', views.view_with_secure),
|
|
|
|
url(r'^permanent_redirect_view/$', RedirectView.as_view(url='/get_view/')),
|
|
|
|
url(r'^temporary_redirect_view/$', RedirectView.as_view(url='/get_view/', permanent=False)),
|
|
|
|
url(r'^http_redirect_view/$', RedirectView.as_view(url='/secure_view/')),
|
|
|
|
url(r'^https_redirect_view/$', RedirectView.as_view(url='https://testserver/secure_view/')),
|
|
|
|
url(r'^double_redirect_view/$', views.double_redirect_view),
|
|
|
|
url(r'^bad_view/$', views.bad_view),
|
|
|
|
url(r'^form_view/$', views.form_view),
|
|
|
|
url(r'^form_view_with_template/$', views.form_view_with_template),
|
|
|
|
url(r'^formset_view/$', views.formset_view),
|
|
|
|
url(r'^login_protected_view/$', views.login_protected_view),
|
|
|
|
url(r'^login_protected_method_view/$', views.login_protected_method_view),
|
|
|
|
url(r'^login_protected_view_custom_redirect/$', views.login_protected_view_changed_redirect),
|
|
|
|
url(r'^permission_protected_view/$', views.permission_protected_view),
|
|
|
|
url(r'^permission_protected_view_exception/$', views.permission_protected_view_exception),
|
|
|
|
url(r'^permission_protected_method_view/$', views.permission_protected_method_view),
|
|
|
|
url(r'^session_view/$', views.session_view),
|
|
|
|
url(r'^broken_view/$', views.broken_view),
|
|
|
|
url(r'^mail_sending_view/$', views.mail_sending_view),
|
|
|
|
url(r'^mass_mail_sending_view/$', views.mass_mail_sending_view),
|
|
|
|
url(r'^django_project_redirect/$', views.django_project_redirect),
|
2014-01-14 23:43:27 +08:00
|
|
|
|
2014-08-12 22:54:42 +08:00
|
|
|
url(r'^accounts/login/$', auth_views.login, {'template_name': 'login.html'}),
|
|
|
|
url(r'^accounts/logout/$', auth_views.logout),
|
2014-04-02 08:46:34 +08:00
|
|
|
]
|