22.1 Introduction

Once the basics of authentication have been handled, most developers seek to add information about users. Perhaps they want a birth date, or perhaps they want to connect with their users on Twitter or Facebook. Regardless of the purpose, they want to store extra information about the user, and given what we know about auth so far, there is no clear and obvious approach to this problem.

In this chapter, we explore two possibilities for adding user information. We first create a Profile model to store extra information, tying it to the auth’s User model. Then, we build our own User model to be able to change behavior and actually remove information from the model rather than adding fields. By the end, we’ll see that the best ...

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.