OneToOne or Abstract? Techniques for customizing User data in Django

Eleanor Stribling


Django, a popular Python web framework, comes with a basic User model out of the box, but what do you do if you want to collect more data from customers when they sign up on your site? What are your options for a brand new project with special requirements versus an evolving, existing site? This poster will review two options - extending the User model via a OneToOne relationship and writing a custom model based on Django's AbstractUser - when to use them and how to implement them.