It gives me the following error and shuts down the program.
[05/Feb/2021 19:41:25] "GET / HTTP/1.1" 200 25 [05/Feb/2021 19:41:35]
"GET /reset_password/ HTTP/1.1" 200 1903 [05/Feb/2021 19:41:41] "POST
/reset_password/ HTTP/1.1" 302 0
My URLS:
path('reset_password/',
auth_views.PasswordResetView.as_view(),
name="reset_password"),
path('reset_password_sent/',
auth_views.PasswordResetDoneView.as_view(),
name="password_reset_done"),
path('reset/<uidb64>/<token>/',
auth_views.PasswordResetConfirmView.as_view(),
name="password_reset_confirm"),
path('reset_password_complete/',
auth_views.PasswordResetCompleteView.as_view(),
name="password_reset_complete")
and setting.py
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = '****@gmail.com'
EMAIL_HOST_PASSWORD = '********'
I have allowed less secure apps on Gmail, but it still gives this error!
question from:
https://stackoverflow.com/questions/66064923/how-do-i-fix-django-password-reset-error-200-1903-302-0 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…