Customizing authentication in Django | Django documentation
The web framework for perfectionists with deadlines.