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