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