2007-05-10 21:46:15 +08:00
|
|
|
from django.conf.urls.defaults import *
|
2009-02-27 21:14:59 +08:00
|
|
|
from django.views.generic.simple import redirect_to
|
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),
|
2009-02-27 21:14:59 +08:00
|
|
|
(r'^redirects/$', redirect_to, {'url': '/test_client_regress/redirects/further/'}),
|
|
|
|
(r'^redirects/further/$', redirect_to, {'url': '/test_client_regress/redirects/further/more/'}),
|
|
|
|
(r'^redirects/further/more/$', redirect_to, {'url': '/test_client_regress/no_template_view/'}),
|
|
|
|
(r'^redirect_to_non_existent_view/$', redirect_to, {'url': '/test_client_regress/non_existent_view/'}),
|
|
|
|
(r'^redirect_to_non_existent_view2/$', redirect_to, {'url': '/test_client_regress/redirect_to_non_existent_view/'}),
|
|
|
|
(r'^redirect_to_self/$', redirect_to, {'url': '/test_client_regress/redirect_to_self/'}),
|
|
|
|
(r'^circular_redirect_1/$', redirect_to, {'url': '/test_client_regress/circular_redirect_2/'}),
|
|
|
|
(r'^circular_redirect_2/$', redirect_to, {'url': '/test_client_regress/circular_redirect_3/'}),
|
|
|
|
(r'^circular_redirect_3/$', redirect_to, {'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),
|
|
|
|
(r'^check_headers_redirect/$', redirect_to, {'url': '/test_client_regress/check_headers/'}),
|
2011-01-21 09:04:05 +08:00
|
|
|
(r'^raw_post_data/$', views.raw_post_data),
|
2007-05-10 21:46:15 +08:00
|
|
|
)
|