Complete the code to import the Django view for password change.
from django.contrib.auth.views import [1]
The PasswordChangeView is the built-in Django view used to handle password changes.
Complete the URL pattern to use Django's password reset view.
path('reset/', [1].as_view(), name='password_reset')
The PasswordResetView handles the password reset process starting point.
Fix the error in the password change form import statement.
from django.contrib.auth.forms import [1]
The PasswordChangeForm is the correct form to use for changing passwords.
Fill both blanks to complete the password reset confirm URL pattern.
path('reset/<uidb64>/<[1]>/', [2].as_view(), name='password_reset_confirm')
The URL uses a token parameter and the PasswordResetConfirmView to confirm password reset.
Fill all three blanks to create a dictionary comprehension filtering users with active status and mapping usernames to emails.
user_emails = {user.[1]: user.[2] for user in users if user.[3]This comprehension creates a dictionary of usernames to emails only for active users.