Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Jannis Leidel authored April 29, 2011
10  tests/regressiontests/urlpatterns_reverse/reverse_lazy_urls.py
... ...
@@ -0,0 +1,10 @@
  1
+from django.conf.urls.defaults import *
  2
+
  3
+from views import empty_view, LazyRedictView, login_required_view
  4
+
  5
+urlpatterns = patterns('',
  6
+    url(r'^redirected_to/$', empty_view, name='named-lazy-url-redirected-to'),
  7
+    url(r'^login/$', empty_view, name='some-login-page'),
  8
+    url(r'^login_required_view/$', login_required_view),
  9
+    url(r'^redirect/$', LazyRedictView.as_view()),
  10
+)

0 notes on commit e99fa0c

Please sign in to comment.
Something went wrong with that request. Please try again.