title: Django reset password throws 500 error
body: <p>I have implemented the Reset password by using django ResetPassword. But It throws the 500 error. I don't know how to find the flow &amp; fix it. </p>
  
  <p>1.I have created the urls.py </p>
  
  <pre><code>    from __future__ import unicode_literals
      from django.conf.urls.static import static
      from django.conf import settings
      from django.contrib import admin
      from django.contrib.auth import views as auth_views
      from django.urls import include, path
  
      from . import views
  
      app_patterns = [
          path('login/', auth_views.LoginView.as_view(), name='login'),
          path('logout/', auth_views.LogoutView.as_view(), 
          name='logout'),
          path('signup/', views.Signup.as_view(), name='signup'),
          path(
              'password_reset/',
              auth_views.PasswordResetView.as_view(),
              name='password_reset'
          ),]
  </code></pre>
  
  <p>Also I have created the HTML files (Refer <a href="https://i.stack.imgur.com/toko3.png" rel="nofollow noreferrer">Screenshot</a>)</p>
  
  <ul>
  <li>password_reset_form</li>
  <li>password_reset_done</li>
  <li>password_reset_confirm</li>
  <li>password_reset_complete</li>
  </ul>
  
  <p>I don't know what I'm missing here. Can anybody help me out? Thanks in advance.</p>