19.4 auth App Anatomy: The Basics

The auth app, as you might have guessed, is a full-fledged app. It comes equipped with models, forms, views, decorators, URL patterns, and even middleware. It relies heavily on the sessions app but also makes use of the sites app if it’s enabled (we enabled the sites app in Chapter 15: Creating Webpages with Django Flatpages). See Example 19.9.

Example 19.9: Project Code

suorganizer/settings.py in 97c4234a4a

35   INSTALLED_APPS = (  .       ... 37       'django.contrib.auth',  .       ... 41       'django.contrib.sites',  .       ... 48   )

In this chapter, we focus on the User Model. Django stores all of the information to identify and authenticate a user/visitor in the model ...

Get Django Unleashed 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.