O
O
Oleg Vedernikov2016-04-08 00:06:20
Django
Oleg Vedernikov, 2016-04-08 00:06:20

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

2 answer(s)
R
Roman Kitaev, 2016-04-08
@deliro

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

E
Evgeny Maltsev, 2016-04-08
@hellpirat

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 question

Ask a Question

731 491 924 answers to any question