@login_required
def update_password(request):
    user = request.user

    if request.method == 'POST':
        form = UpdatePasswordForm(request.POST, user=user)

        if form.is_valid():
            new_pass = make_password(form.cleaned_data['new_password'])
            user.password = new_pass
            user.save()

            site = get_current_site(request)
            messages.success(request, _(
                'Your {} password has been updated.'.format(site.name)))

    else:
        form = UpdatePasswordForm(user=user)

    context = {
        'form': form,
    }

    return render(request, 'accounts/update_password.html', context)
The Settings object begins with the appropriate defaults for clients.
dataset/ETHPy150Open nlhkabu/connect/connect/accounts/views.py/update_password--crossover with--dataset/ETHPy150Open python-hyper/hyper-h2/test/test_settings.py/TestSettings.test_settings_defaults_client