Render ChoiceField options in Django template
问题 Given a ChoiceField in Django fruits = ChoiceField(label="Fruits", choices=(('A', 'Apple'), ('B', 'Banana'), ('C', 'Cherry') ) How do I display the form options in Django Templates in 1.9? For example, I tried the following but cannot display the form data: <table class="table table-bordered table-condensed"> <tr> <th> <label for="{{form.fruits.id_label}}"> {{form.fruits.label}} </label> </th> <td>{% for value, displayable in form.fruits.choices %} <option value="{{value}}">{{displayable}}<