Display a form field i.e., a choice field of form in the template django
问题 I've have forms.py file in that i have a choice field which i've to display it in the template.html forms.py Choices = [('Yelp',)] class UtilitiesForm(forms.Form): api_select = forms.MultipleChoiceField(widget=forms.Select(), choices=Choices) text_url = forms.CharField() template.html {% block body_content %} <form action="/utilities/fetch-data/" method="post" id="utitliy__form"> <div class="form-row"> <label>Select an API</label> {{ form.api_select }} </div> </form> {% endblock body_content