Chapter 15. Adding Website Security

What You’ll Learn in This Hour

  • How to add login functionality
  • How to add logout functionality
  • How to verify authentication
  • How to verify permissions
  • How to limit access to generic views

Hour 14, “Managing Site Users,” covered creating users and groups and setting permissions for both. This hour discusses securing the website by forcing users to be authenticated and logged into the site to gain access to certain pages. It also discusses how to use permissions to verify that users can view and change content.

Implementing User Logins

The first step in adding security to the website is creating User objects so that you know who is trying to access the website. The second step is implementing a login to force users ...

Get Sams Teach Yourself Django in 24 Hours 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.