[Django]-Where to you monkey patch the Django user model?

7đź‘Ť

âś…

Please take a look at Storing additional information about users section of the authentication documentation. It suggests a cleaner way to add additional information to a User object.

If you’d like to store additional information related to your users, Django provides a method to specify a site-specific related model — termed a “user profile” — for this purpose.

3đź‘Ť

If you really want to monkey patch user model, there already exists an app for this.
Django-primate

A modular django user.

This Django application monkey patches
django in order to have a custom User
model that plugs into the
django.contrib.auth application.

Leave a comment