Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/03/2014, 19:15
WebDeveloperZ
 
Fecha de Ingreso: marzo-2007
Mensajes: 340
Antigüedad: 17 años, 8 meses
Puntos: 4
Cambiar password

Necesito armar un form para cambiar el password con los siguientes campos:

Contraseña actual, nuevo password, repetir nuevo password

Por lo visto django lo incorpora pero como soy nuevo en este lenguaje estoy aplicandolo sin suerte ...

Cita:
If you have a site where users have the traditional username/password combination, you've got to provide some way to let users change their password. Luckily, this is fairly easy to do with Django. The auth app comes with a password_change view that does what you'd probably expect.
It's also fairly easy to set up. You add a line similar to the following to your root URLConf:

url(r'^accounts/', include('django.contrib.auth.urls')),

You also have to set up some additional templates (e.g. registration/password_change_form.html), but once you've done that, users can change their password using a form that looks something like this:
Lei eso por ej pero no me queda claro, aparte no quiero incluir todas las urls de auth si no solo el cambio de password.

Gracias.