Answer the question
In order to leave comments, you need to log in
Can't register with VK and allauth?
Hello!
For some reason, it is not possible to implement registration through VKontakte using django-allauth. Always returns an error
KeyError at /accounts/vk/login/callback/
'response'
{% load socialaccount %}
<a href='{% provider_login_url "vk" %}'>ВКонтакте</a>
Answer the question
In order to leave comments, you need to log in
At the moment, two changes need to be made to solve this problem:
1. In the allauth/socialaccount/providers/vk/views.py file , in the complete_login method in the params variable, change 'v': '3.00' to 'v': '5.00' .
2. In the allauth/socialaccount/providers/vk/provider.py file, in the extract_uid method, replace the line return str(data['uid']) with return str(data['id'])
PS version allauth 0.39
Good luck in business!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question