On my main page I have two forms with prefixes to differentiate them:
context['login_form'] = LogInForm(prefix='login')
context['signIn_form'] = SignInForm(prefix='signin')
When filling out a form and sending it (for example, the registration form) I get the following fields in request:
csrfmiddlewaretoken: 'M5NGRWWRJfGIFY0l0kKfTJLz05HY85MW2vbZ7mhwAv0tO2Hnw4MA4PZ914cMPsTt'
signin-email: '[email protected]'
signin-password: '123'
signin-repeat_password: '123'
checkbox: 'check'
SignInButton: ''
but I can't get the email field in the following way: request.signin-email
because it has a -
.
How can I get the values of that request?
Thanks.
from the django request it is not possible to get the parameters directly if you need to get it you have to use the method from which you send it example GET, POST and get it as a dictionary, example: