I am trying to get django reset password, but reset is not sent.
I know that my email is set up correctly, because the following works both in the shell and in one of my views (I use it to receive support email for myself).
from django.core.mail import send_mail send_mail('Subject here', 'Here is the message.', ' admin@mydomain.com ',[' me@gmail.com '], fail_silently=False)
I can go to my password submission reset ( password / reset / ), and after I send it by email, it will redirect me to the password / reset / done / correctly, but it does not send the email.
Here is my urls.py :
(r'^password/reset/$','django.contrib.auth.views.password_reset'), (r'^password/reset/done/$','django.contrib.auth.views.password_reset_done'), (r'^password/reset/confirm/$','django.contrib.auth.views.password_reset_confirm'), (r'^password/reset/complete/$','django.contrib.auth.views.password_reset_confirm'), (r'^password/change/$','django.contrib.auth.views.password_change'), (r'^password/change/done/$','django.contrib.auth.views.password_change_done'),
Here is my password_reset_form.html :
<html> <head> <link rel="stylesheet" type="text/css" href="/media/css/style_login.css" /> <title>Información de acceso requerida</title> </head> <body> <div id="wrapper"> <h1>Recuperar password</h1> <p>Utilice este formulario cuando desee recuperar el password para su usuario.</p> {% if form.errors %} <p>No hay un usuario registrado con ese correo electronico.</p> {% endif %} <form method="post" action="{% url django.contrib.auth.views.password_reset_done %}"> {% csrf_token %} {{ form }} <input class="login" type="submit" value="Recuperar" /> </form> </div> </body>
Any ideas? Thanks