title: How to send emails with Django for Password Reset?
body: <p>I am trying to send <code>password change link</code> to an email address which a user will type. I typed my email but it is not sending me any link. How to resolve this issue?</p>
  
  <p><em>urls</em></p>
  
  <pre><code>urlpatterns = [
      path('password_reset/',auth_views.PasswordResetView.as_view
      (template_name='users/password_reset.html'),
       name='password_reset'),
      path('password_reset_done/',auth_views.PasswordResetDoneView.as_view
      (template_name='users/password_reset_done.html'),
       name='password_reset_done'),
      path('password_reset_confirm/',auth_views.PasswordResetConfirmView.as_view
       (template_name='users/password_reset_confirm.html'),
        name='password_reset_confirm')]
  </code></pre>
  
  <p><em>settings.py</em></p>
  
  <pre><code>EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  EMAIL_HOST = 'smtp.gmail.com'
  EMAIL_PORT = 587
  EMAIL_USE_TLS = True
  EMAIL_HOST_USER = os.environ.get('EMAIL_USER')
  EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_PASS')
  </code></pre>