I am studying Django programming and will be appreciate for an example of code where authenticate and login method are used.
Basically Django is a web framework which assists in building composite web applications simply and fast written in the Python. It has built-in user authentication system which deals with cookie-based user sessions, permissions groups and user accounts. This document explains how things work. The detailed user authentication tutorial for django can be from here.