1
0
mirror of https://github.com/django/django.git synced 2024-11-18 07:26:04 +00:00
django/tests/urlpatterns_reverse/reverse_lazy_urls.py

11 lines
357 B
Python

from django.urls import path
from .views import LazyRedirectView, empty_view, login_required_view
urlpatterns = [
path('redirected_to/', empty_view, name='named-lazy-url-redirected-to'),
path('login/', empty_view, name='some-login-page'),
path('login_required_view/', login_required_view),
path('redirect/', LazyRedirectView.as_view()),
]