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
|
|
|
|
|
2014-04-02 08:46:34 +08:00
|
|
|
urlpatterns = [
|
2016-09-11 17:23:35 +08:00
|
|
|
url(r'^upload_view/$', views.upload_view, name='upload_view'),
|
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),
|
2017-05-22 18:49:39 +08:00
|
|
|
url(r'^put_view/$', views.put_view),
|
2014-10-13 19:10:00 +08:00
|
|
|
url(r'^trace_view/$', views.trace_view),
|
2014-04-02 08:46:34 +08:00
|
|
|
url(r'^header_view/$', views.view_with_header),
|
|
|
|
url(r'^raw_post_view/$', views.raw_post_view),
|
|
|
|
url(r'^redirect_view/$', views.redirect_view),
|
2017-05-22 18:49:39 +08:00
|
|
|
url(r'^redirect_view_307/$', views.method_saving_307_redirect_view),
|
|
|
|
url(r'^redirect_view_308/$', views.method_saving_308_redirect_view),
|
2014-04-02 08:46:34 +08:00
|
|
|
url(r'^secure_view/$', views.view_with_secure),
|
2014-11-27 11:44:56 +08:00
|
|
|
url(r'^permanent_redirect_view/$', RedirectView.as_view(url='/get_view/', permanent=True)),
|
2014-04-02 08:46:34 +08:00
|
|
|
url(r'^temporary_redirect_view/$', RedirectView.as_view(url='/get_view/', permanent=False)),
|
2015-01-19 05:43:57 +08:00
|
|
|
url(r'^http_redirect_view/$', RedirectView.as_view(url='/secure_view/')),
|
|
|
|
url(r'^https_redirect_view/$', RedirectView.as_view(url='https://testserver/secure_view/')),
|
2014-04-02 08:46:34 +08:00
|
|
|
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),
|
2015-08-08 03:28:54 +08:00
|
|
|
url(r'^nesting_exception_view/$', views.nesting_exception_view),
|
2014-04-02 08:46:34 +08:00
|
|
|
url(r'^django_project_redirect/$', views.django_project_redirect),
|
2017-11-24 00:18:03 +08:00
|
|
|
url(r'^two_arg_exception/$', views.two_arg_exception),
|
2014-01-14 23:43:27 +08:00
|
|
|
|
2016-04-02 22:35:33 +08:00
|
|
|
url(r'^accounts/$', RedirectView.as_view(url='login/')),
|
|
|
|
url(r'^accounts/no_trailing_slash$', RedirectView.as_view(url='login/')),
|
2016-05-15 23:28:00 +08:00
|
|
|
url(r'^accounts/login/$', auth_views.LoginView.as_view(template_name='login.html')),
|
|
|
|
url(r'^accounts/logout/$', auth_views.LogoutView.as_view()),
|
2014-04-02 08:46:34 +08:00
|
|
|
]
|