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
|
|
|
|
|
2006-09-02 09:34:40 +00:00
|
|
|
|
2014-04-02 00:46:34 +00:00
|
|
|
urlpatterns = [
|
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),
|
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),
|
|
|
|
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)),
|
2014-11-27 03:44:56 +00:00
|
|
|
url(r'^http_redirect_view/$', RedirectView.as_view(url='/secure_view/', permanent=True)),
|
|
|
|
url(r'^https_redirect_view/$', RedirectView.as_view(url='https://testserver/secure_view/', permanent=True)),
|
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),
|
|
|
|
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 15:43:27 +00:00
|
|
|
|
2014-08-12 14:54:42 +00:00
|
|
|
url(r'^accounts/login/$', auth_views.login, {'template_name': 'login.html'}),
|
|
|
|
url(r'^accounts/logout/$', auth_views.logout),
|
2014-04-02 00:46:34 +00:00
|
|
|
]
|