I would like to add the username of the user on pages like change_password.
I don't think I can pass the username as extra context for in the url like that:
url(r'^password_change/$','django.contrib.auth.views.password_reset', ),'extra_context':{'user_name': 'alexis'})
because I need to change 'alexis' to resquest.user.get_username() and I don't have access to the resquest.
I also tried to create a custom view but it doesn't work:
from django.contrib.auth.views import password_change_done
def my_password_change(request):return password_change_done(request,'password/password_change_form.html','extra_context':{'user_name': 'alexis'})
Thank you in advance for any input.
Alexis.