Search code examples
pythondjangoadmin

Should I use my own users table or use the admin generated one with django?


I created my own user table. I've been learning how to use the admin panel and I saw there's already a user table. Should I use it or mine? (for example connection, member panel etc...) If I should use it how to update it? If I shouldn't what do I have to use it for?


Solution

  • Use the one django provides.

    If you want extra fields on your user, create an extension to the user model.

    It's really easy to do, you can just create your own model and make it inherit from the django.contrib.auth.User model, or you can also look here: Extending the User model with custom fields in Django for more awesome answers of how people are doing this exact thing