Answer the question
In order to leave comments, you need to log in
How to get user id from human submitted form?
There is a form in which a logged in user adds an account from VK(login)
How to connect user id and this login in the database? User model did not change.
Answer the question
In order to leave comments, you need to log in
#models.py
...
vk_login = ...
...
#views.py
user = request.user
user.vk_login = request.POST['login']
user.save()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question