2014-04-02 00:46:34 +00:00
|
|
|
from django.conf.urls import url
|
2014-08-12 14:54:42 +00:00
|
|
|
from django.contrib.auth import views as auth_views
|
2011-04-02 08:45:38 +00:00
|
|
|
from django.views.generic import RedirectView
|
2011-10-13 18:04:12 +00:00
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
2014-04-02 00:46:34 +00:00
|
|
|
urlpatterns = [
|
2016-09-11 09:23:35 +00:00
|
|
|
url(r'^upload_view/$', views.upload_view, name='upload_view'),
|
2014-06-06 14:49:02 +00:00
|
|
|
url(r'^get_view/$', views.get_view, name='get_view'),
|
2014-04-02 00:46:34 +00:00
|
|
|
url(r'^post_view/$', views.post_view),
|
2017-05-22 10:49:39 +00:00
|
|
|
url(r'^put_view/$', views.put_view),
|
2014-10-13 11:10:00 +00:00
|
|
|
url(r'^trace_view/$', views.trace_view),
|
2014-04-02 00:46:34 +00: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 10:49:39 +00: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 00:46:34 +00:00
|
|
|
url(r'^secure_view/$', views.view_with_secure),
|
2014-11-27 03:44:56 +00:00
|
|
|
url(r'^permanent_redirect_view/$', RedirectView.as_view(url='/get_view/', permanent=True)),
|
2014-04-02 00:46:34 +00:00
|
|
|
url(r'^temporary_redirect_view/$', RedirectView.as_view(url='/get_view/', permanent=False)),
|
2015-01-18 21:43:57 +00: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 00:46:34 +00: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),
|
2018-02-05 10:22:24 +00:00
|
|
|
url(r'^json_view/$', views.json_view),
|
2014-04-02 00:46:34 +00:00
|
|
|
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-07 19:28:54 +00:00
|
|
|
url(r'^nesting_exception_view/$', views.nesting_exception_view),
|
2014-04-02 00:46:34 +00:00
|
|
|
url(r'^django_project_redirect/$', views.django_project_redirect),
|
2017-11-23 16:18:03 +00:00
|
|
|
url(r'^two_arg_exception/$', views.two_arg_exception),
|
2014-01-14 15:43:27 +00:00
|
|
|
|
2016-04-02 14:35:33 +00:00
|
|
|
url(r'^accounts/$', RedirectView.as_view(url='login/')),
|
|
|
|
url(r'^accounts/no_trailing_slash$', RedirectView.as_view(url='login/')),
|
2016-05-15 15:28:00 +00: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 00:46:34 +00:00
|
|
|
]
|