sample django form html code example
Example 1: django model form
class YourForm(ModelForm):
class Meta:
model = YourModel
fields = ['pub_date', 'headline', 'content', 'reporter']
Example 2: django get form id from request
# html
# views.py
if 'message_frm' in request.POST:
#do somethings