S
S
Sazoks2020-12-17 07:27:43
Django
Sazoks, 2020-12-17 07:27:43

Django social auth, how to make custom model for db?

Good afternoon!
The task is this: the user logs in through Facebook (I used social django for this), I get all the necessary information, in my case, the name, photo, email and profile address.
But in my task it is required to store some information in text form, which comes from the client. How can I push it into the db provided by social django?
All I found was an 8 year old Stackoverflow article that didn't cover the topic very well and talked about inheriting your model from django.contrib.auth.models.AbstractBaseUser, but I couldn't figure out how to use it further. ..
I would be most grateful for your help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-12-17
@bacon

Learn to read the docs, everything is there https://docs.djangoproject.com/en/3.1/topics/auth/... You also need to learn to google, even a Russian-language article can be found without any problems https://habr.com/ru/ post/313764/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question