Chapter 11. User Authentication in Django

A significant percentage of modern, interactive websites allow some form of user interaction-from allowing simple comments on a blog, to full editorial control of articles on a news site. If a site offers any sort of ecommerce, authentication, and authorization of paying customers is essential.

Just managing users-lost usernames, forgotten passwords, and keeping information up to date-can be a real pain. As a programmer, writing an authentication system can be even worse.

Lucky for us, Django provides a default implementation for managing user accounts, groups, permissions, and cookie-based user sessions out of the box.

Like most things in Django, the default implementation is fully extendible and customizable ...

Get Mastering Django: Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.