Answer the question
In order to leave comments, you need to log in
How to implement avatar loading with django allauth?
Tell me where to dig. There is nothing in the extra_data dictionary that could be associated with an avatar.
Answer the question
In order to leave comments, you need to log in
One of the functions in the pipeline assigns to existing user fields the values that came in the dictionary from the API. In VK, as far as I remember, this is the photo field. That is, your user must have a photo field (ImageField or CharField). Or write your own handler and throw it into the pipeline.
PS It's about python-social-auth
Write your own registration form with an avatar and specify a custom registration form in the settings.
ACCOUNT_SIGNUP_FORM_CLASS = 'yourproject.yourapp.forms.SignupForm'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question