Custom User and Profile Model

10 views
Skip to first unread message

dtdave

unread,
Jan 28, 2020, 8:13:01 AM1/28/20
to Django users
I have created a Custom User Model and a Profile model that is created when a user registers with the site.

I just want some confirmation that my logic is right.

To avoid the error when creating a superuser "Custom users have no profile" I have put the following in my settings.py:
AUTH_PROFILE_MODULE = 'accounts.Profile'

accounts is the name of the app and Profile is the model name.

This works fine and creates a profile in the admin for the superuser. I just need confirmation that this is the correct way to do it.

Thanks in advance
Reply all
Reply to author
Forward
0 new messages