2014-04-02 00:46:34 +00:00
|
|
|
from django.conf.urls import url
|
2011-04-29 12:03:02 +00:00
|
|
|
|
2015-02-09 18:19:34 +00:00
|
|
|
from .views import LazyRedirectView, empty_view, login_required_view
|
2011-04-29 12:03:02 +00:00
|
|
|
|
2014-04-02 00:46:34 +00:00
|
|
|
urlpatterns = [
|
2011-04-29 12:03:02 +00:00
|
|
|
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),
|
2014-11-27 03:44:56 +00:00
|
|
|
# TODO: Remove permanent=True where it doesn't matter in Django 1.9
|
|
|
|
url(r'^redirect/$', LazyRedirectView.as_view(permanent=True)),
|
2014-04-02 00:46:34 +00:00
|
|
|
]
|