title: LOGIN_REDIRECT_URL not working in django2.1
body: <p>I am learning Django and i am having hard time integrating built-in Django login systems. In <code>settings.py</code> I have provided <code>LOGIN_REDIRECT_URL</code> and <code>LOGOUT_REDIRECT_URL</code>. <code>LOGOUT_REDIRECT_URL</code> is working fine when I click Logout button. Button <code>LOGIN_REDIRECT_URL</code> is not working when I have provided with login credentials.</p>
  
  <pre><code>settings.py
  LOGOUT_REDIRECT_URL = 'post_list'
  
  LOGIN_REDIRECT_URL = 'post_list'
  
  INSTALLED_APPS = [
  'django.contrib.admin',
  'django.contrib.auth',
  'django.contrib.contenttypes',
  'django.contrib.sessions',
  'django.contrib.messages',
  'django.contrib.staticfiles',
  'blog',   
  ]
  
  urls.py
  
  from django.urls import path, include
  from django.contrib import admin
  
  urlpatterns = [
  path(r'admin/', admin.site.urls),
  path(r'', include('blog.urls')),
  ]
  
  blog/urls.py
  from django.urls import path
  from .views import (BlogListView, BlogDetailView, BlogCreateView, BlogUpdateView, BlogDeleteView)
  
  urlpatterns = [
  path('', BlogListView.as_view(), name='post_list'),
  path('post/&lt;int:pk&gt;/', BlogDetailView.as_view(), name='post_detail'),
  path('post/new/', BlogCreateView.as_view(), name='post_new'),
  path('post/&lt;int:pk&gt;/edit/', BlogUpdateView.as_view(), name='post_edit'),
  path('post/&lt;int:pk&gt;/delete/', BlogDeleteView.as_view(), name='post_delete'),
  ]
  login.html
  {% extends 'base.html' %}
  
  
  {% block content %}
  &lt;h2&gt;Login&lt;/h2&gt;
  &lt;form action="post"&gt;
  {% csrf_token %}
  
  {{form.as_p}}
  
  &lt;button type='submit'&gt;Login&lt;/button&gt;
  &lt;/form&gt;
  
  {% endblock %}
  
  base.html
  &lt;body&gt;
  
  &lt;div class="container"&gt;
      &lt;header&gt;
          &lt;div class="nav-left"&gt;
              &lt;h1&gt;&lt;a href="/"&gt;Django Blog&lt;/a&gt;&lt;/h1&gt;
          &lt;/div&gt;
          &lt;div class=nav-right&gt;
              &lt;a href="{% url 'post_new' %}"&gt; + New Blog Post. &lt;/a&gt;
          &lt;/div&gt;
      &lt;/header&gt;
  
      {% if user.is_authenticated %}
          &lt;p&gt;Hi! {{user.username}}&lt;/p&gt;
          &lt;a href="{% url 'logout' %}"&gt;Logout&lt;/a&gt;
      {% else %}
          &lt;p&gt;You are not logged in. &lt;/p&gt;
          &lt;a href="{% url 'login' %}"&gt;Login&lt;/a&gt;
      {% endif %}
  
      {% block content %}
  
      {% endblock %}
  &lt;/div&gt;
  
  &lt;/body&gt;
  </code></pre>