def redirect_to_login(next, login_url=None, redirect_field_name=REDIRECT_FIELD_NAME):
    if not login_url:
        login_url = settings.LOGIN_URL
    return HttpResponseRedirect('%s?%s=%s' % (login_url, urlquote(redirect_field_name), urlquote(next)))

# 4 views for password reset:
# - password_reset sends the mail
# - password_reset_done shows a success message for the above
# - password_reset_confirm checks the link the user clicked and 
#   prompts for a new password
# - password_reset_complete shows a success message for the above
Redirects the user to the login page, passing the given 'next' page
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/contrib/auth/views.py/redirect_to_login