2011-09-12 00:36:16 +02:00
|
|
|
from django.conf.urls import patterns, url
|
2011-04-02 10:45:06 +02:00
|
|
|
from django.views.generic import RedirectView
|
2011-10-13 23:34:56 +02:00
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
2007-05-10 15:46:15 +02:00
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
|
|
|
(r'^no_template_view/$', views.no_template_view),
|
2008-06-07 08:25:59 +02:00
|
|
|
(r'^staff_only/$', views.staff_only_view),
|
2007-09-03 13:21:40 +02:00
|
|
|
(r'^get_view/$', views.get_view),
|
2008-11-12 12:22:05 +01:00
|
|
|
(r'^request_data/$', views.request_data),
|
2013-10-26 21:15:03 +02:00
|
|
|
(r'^request_data_extended/$', views.request_data, {'template': 'extended.html', 'data': 'bacon'}),
|
2008-03-20 07:50:54 +01:00
|
|
|
url(r'^arg_view/(?P<name>.+)/$', views.view_with_argument, name='arg_view'),
|
2013-02-04 16:50:15 +01:00
|
|
|
url(r'^nested_view/$', views.nested_view, name='nested_view'),
|
2008-08-15 14:08:29 +02:00
|
|
|
(r'^login_protected_redirect_view/$', views.login_protected_redirect_view),
|
2011-04-02 10:45:06 +02:00
|
|
|
(r'^redirects/$', RedirectView.as_view(url='/test_client_regress/redirects/further/')),
|
|
|
|
(r'^redirects/further/$', RedirectView.as_view(url='/test_client_regress/redirects/further/more/')),
|
|
|
|
(r'^redirects/further/more/$', RedirectView.as_view(url='/test_client_regress/no_template_view/')),
|
|
|
|
(r'^redirect_to_non_existent_view/$', RedirectView.as_view(url='/test_client_regress/non_existent_view/')),
|
|
|
|
(r'^redirect_to_non_existent_view2/$', RedirectView.as_view(url='/test_client_regress/redirect_to_non_existent_view/')),
|
|
|
|
(r'^redirect_to_self/$', RedirectView.as_view(url='/test_client_regress/redirect_to_self/')),
|
|
|
|
(r'^circular_redirect_1/$', RedirectView.as_view(url='/test_client_regress/circular_redirect_2/')),
|
|
|
|
(r'^circular_redirect_2/$', RedirectView.as_view(url='/test_client_regress/circular_redirect_3/')),
|
|
|
|
(r'^circular_redirect_3/$', RedirectView.as_view(url='/test_client_regress/circular_redirect_1/')),
|
2011-11-27 21:04:13 +01:00
|
|
|
(r'^redirect_other_host/$', RedirectView.as_view(url='https://otherserver:8443/test_client_regress/no_template_view/')),
|
2008-08-15 14:08:29 +02:00
|
|
|
(r'^set_session/$', views.set_session_view),
|
|
|
|
(r'^check_session/$', views.check_session_view),
|
2008-10-07 11:23:40 +02:00
|
|
|
(r'^request_methods/$', views.request_methods_view),
|
2009-04-07 14:06:05 +02:00
|
|
|
(r'^check_unicode/$', views.return_unicode),
|
2013-04-11 10:36:12 +02:00
|
|
|
(r'^check_binary/$', views.return_undecodable_binary),
|
2009-04-11 11:20:10 +02:00
|
|
|
(r'^parse_unicode_json/$', views.return_json_file),
|
2010-08-21 05:01:46 +02:00
|
|
|
(r'^check_headers/$', views.check_headers),
|
2011-04-02 10:45:06 +02:00
|
|
|
(r'^check_headers_redirect/$', RedirectView.as_view(url='/test_client_regress/check_headers/')),
|
2011-12-17 00:40:32 +01:00
|
|
|
(r'^body/$', views.body),
|
2011-06-28 12:17:56 +02:00
|
|
|
(r'^read_all/$', views.read_all),
|
|
|
|
(r'^read_buffer/$', views.read_buffer),
|
2011-02-27 01:24:35 +01:00
|
|
|
(r'^request_context_view/$', views.request_context_view),
|
2007-05-10 15:46:15 +02:00
|
|
|
)
|