@handle_response_format
@treeio_login_required
def account_password(request, response_format='html'):

    profile = request.user.profile
    if request.POST:
        if 'cancel' not in request.POST:
            form = AccountPasswordForm(request.user, request.POST)
            if form.is_valid():
                form.save()
                return HttpResponseRedirect(reverse('account_view'))
        else:
            return HttpResponseRedirect(reverse('account_view'))
    else:
        form = AccountPasswordForm(request.user)

    return render_to_response('account/account_password',
                              {'profile': profile,
                               'form': Markup(form.as_ul())},
                              context_instance=RequestContext(request), response_format=response_format)


#
# Settings
#
Change password form
dataset/ETHPy150Open treeio/treeio/treeio/account/views.py/account_password