Package django :: Package contrib :: Package auth :: Module views
[hide private]
[frames] | no frames]

Module views

source code

Functions [hide private]
 
login(request, template_name='registration/login.html', redirect_field_name=REDIRECT_FIELD_NAME)
Displays the login form and handles the login action.
source code
 
logout(request, next_page=None, template_name='registration/logged_out.html')
Logs out the user and displays 'You are logged out' message.
source code
 
logout_then_login(request, login_url=None)
Logs out the user if he is logged in.
source code
 
redirect_to_login(next, login_url=None, redirect_field_name=REDIRECT_FIELD_NAME)
Redirects the user to the login page, passing the given 'next' page
source code
 
password_reset(request, is_admin_site=False, template_name='registration/password_reset_form.html', email_template_name='registration/password_reset_email.html') source code
 
password_reset_done(request, template_name='registration/password_reset_done.html') source code
 
password_change(request, template_name='registration/password_change_form.html') source code
 
password_change_done(request, template_name='registration/password_change_done.html') source code
Function Details [hide private]

logout_then_login(request, login_url=None)

source code 

Logs out the user if he is logged in. Then redirects to the log-in page.