Django redirect_authenticated_user: True not working
问题 I'm writing an application in Django 1.11. myapp/urls.py pattern looks like from django.conf.urls import url, include from django.contrib import admin from django.contrib.auth.views import LoginView urlpatterns = [ url(r'^login/$', LoginView.as_view(), {'redirect_authenticated_user': True}), url('^', include('django.contrib.auth.urls')), url('^', include('pages.urls')), url(r'^pages/', include('pages.urls')), url(r'^search/', include('search.urls')), url(r'^admin/', admin.site.urls), ] I want