Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added file forgotten in r16121. Refs #5925. Thanks, Julien.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16122 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e99fa0c47f5e9aed39c666ca90af5cd680102a4e 1 parent 79afd55
@jezdez jezdez authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 tests/regressiontests/urlpatterns_reverse/reverse_lazy_urls.py
View
10 tests/regressiontests/urlpatterns_reverse/reverse_lazy_urls.py
@@ -0,0 +1,10 @@
+from django.conf.urls.defaults import *
+
+from views import empty_view, LazyRedictView, login_required_view
+
+urlpatterns = patterns('',
+ url(r'^redirected_to/$', empty_view, name='named-lazy-url-redirected-to'),
+ url(r'^login/$', empty_view, name='some-login-page'),
+ url(r'^login_required_view/$', login_required_view),
+ url(r'^redirect/$', LazyRedictView.as_view()),
+)
Please sign in to comment.
Something went wrong with that request. Please try again.