django/tests/urlpatterns_reverse/reverse_lazy_urls.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
357 B
Python
Raw Normal View History

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()),
]