In this Django program the checkbox in the form is not shown. I want to show it.
Please explain what is my error.
Django version 1.10.3.
I tried to render the form this way:
class MyForm(forms.Form):
name = forms.CharField(label='Organization name')
email = forms.EmailField(label='Organization email')
trial_period = forms.CheckboxInput()
# The view method
def test(request):
return HttpResponse(str(checkbox_test.forms.MyForm()))
The view shows name and email but no checkbox for trial_period.
CheckboxInputclass which I already use. So I don't understand what you suggest to add