2007-05-10 13:46:15 +00:00
|
|
|
from django.conf.urls.defaults import *
|
2009-02-27 13:14:59 +00:00
|
|
|
from django.views.generic.simple import redirect_to
|
2007-05-10 13:46:15 +00:00
|
|
|
import views
|
|
|
|
|
|
|
|
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),
|
2009-02-27 13:14:59 +00: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 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),
|
2007-05-10 13:46:15 +00:00
|
|
|
)
|