2015-01-28 12:35:27 +00:00
|
|
|
from django.conf.urls import include, 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
|
|
|
|
|
2014-04-02 00:46:34 +00:00
|
|
|
urlpatterns = [
|
|
|
|
url(r'', include('test_client.urls')),
|
2014-01-14 15:43:27 +00:00
|
|
|
|
2014-04-02 00:46:34 +00:00
|
|
|
url(r'^no_template_view/$', views.no_template_view),
|
|
|
|
url(r'^staff_only/$', views.staff_only_view),
|
|
|
|
url(r'^get_view/$', views.get_view),
|
|
|
|
url(r'^request_data/$', views.request_data),
|
|
|
|
url(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'),
|
2013-02-04 15:50:15 +00:00
|
|
|
url(r'^nested_view/$', views.nested_view, name='nested_view'),
|
2014-04-02 00:46:34 +00:00
|
|
|
url(r'^login_protected_redirect_view/$', views.login_protected_redirect_view),
|
2015-01-18 21:43:57 +00:00
|
|
|
url(r'^redirects/$', RedirectView.as_view(url='/redirects/further/')),
|
|
|
|
url(r'^redirects/further/$', RedirectView.as_view(url='/redirects/further/more/')),
|
|
|
|
url(r'^redirects/further/more/$', RedirectView.as_view(url='/no_template_view/')),
|
|
|
|
url(r'^redirect_to_non_existent_view/$', RedirectView.as_view(url='/non_existent_view/')),
|
|
|
|
url(r'^redirect_to_non_existent_view2/$', RedirectView.as_view(url='/redirect_to_non_existent_view/')),
|
|
|
|
url(r'^redirect_to_self/$', RedirectView.as_view(url='/redirect_to_self/')),
|
2014-10-17 13:46:42 +00:00
|
|
|
url(r'^redirect_to_self_with_changing_query_view/$', views.redirect_to_self_with_changing_query_view),
|
2015-01-18 21:43:57 +00:00
|
|
|
url(r'^circular_redirect_1/$', RedirectView.as_view(url='/circular_redirect_2/')),
|
|
|
|
url(r'^circular_redirect_2/$', RedirectView.as_view(url='/circular_redirect_3/')),
|
|
|
|
url(r'^circular_redirect_3/$', RedirectView.as_view(url='/circular_redirect_1/')),
|
|
|
|
url(r'^redirect_other_host/$', RedirectView.as_view(url='https://otherserver:8443/no_template_view/')),
|
2014-04-02 00:46:34 +00:00
|
|
|
url(r'^set_session/$', views.set_session_view),
|
|
|
|
url(r'^check_session/$', views.check_session_view),
|
|
|
|
url(r'^request_methods/$', views.request_methods_view),
|
|
|
|
url(r'^check_unicode/$', views.return_unicode),
|
|
|
|
url(r'^check_binary/$', views.return_undecodable_binary),
|
2015-05-09 05:33:26 +00:00
|
|
|
url(r'^json_response/$', views.return_json_response),
|
2014-04-02 00:46:34 +00:00
|
|
|
url(r'^parse_unicode_json/$', views.return_json_file),
|
|
|
|
url(r'^check_headers/$', views.check_headers),
|
2015-01-18 21:43:57 +00:00
|
|
|
url(r'^check_headers_redirect/$', RedirectView.as_view(url='/check_headers/')),
|
2014-04-02 00:46:34 +00:00
|
|
|
url(r'^body/$', views.body),
|
|
|
|
url(r'^read_all/$', views.read_all),
|
|
|
|
url(r'^read_buffer/$', views.read_buffer),
|
|
|
|
url(r'^request_context_view/$', views.request_context_view),
|
2014-04-14 19:13:49 +00:00
|
|
|
url(r'^render_template_multiple_times/$', views.render_template_multiple_times),
|
2014-04-02 00:46:34 +00:00
|
|
|
]
|