django form tags code example
Example 1: django get form id from request
# html
# views.py
if 'message_frm' in request.POST:
#do somethings
Example 2: initial form
form = MyForm(initial={'name': 'Peter'})
# html
# views.py
if 'message_frm' in request.POST:
#do somethings
form = MyForm(initial={'name': 'Peter'})