I have to insert 2 forms in the same page:
1) Registration form
2) Login form
.
So if I use this in the views.py:
if requ
You can also do like this,
{{form1.as_p}} Save Changes {{form2.as_p}} Save Changes
CODE
if request.method=='POST' and 'btnform1' in request.POST: do something... if request.method=='POST' and 'btnform2' in request.POST: do something...