A
A
andreyAmaterasu2020-07-15 17:29:46
Django
andreyAmaterasu, 2020-07-15 17:29:46

How to implement user authentication in Django?

How do I need to implement user authentication in Django if I have a User model defined in my database (PostgreSQL), and account data should be stored in this model. Djagno already has an auth application that does just that, i.e. I create a User object, fill in the fields, etc. But I don't quite understand how can I use exactly the User object that I have in the database?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-07-15
@andreyAmaterasu

Create a custom user https://docs.djangoproject.com/en/3.0/topics/auth/... but I'd do that until you're good at Django. It is also possible that this will be needed if your model is very different from the standard https://docs.djangoproject.com/en/3.0/topics/auth/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question