Answer the question
In order to leave comments, you need to log in
How to add a new variable to request.POST on the server side?
You need to register a user on the site. But not from the registration page, but from another page.
All data comes in POST except for the password (it is not there), and the form validator swears: the password field is required.
It is necessary to add the pass field to the POST.
Thanks in advance
Answer the question
In order to leave comments, you need to log in
In older versions, you can make a copy of the request:
- or via request.POST = request.POST.copy()
;
- or through assembly of the request yourself:
qd = QueryDict('', 'mutable')
qd[key] = value
request.POST = qd
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question