Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

django jinja extract elements from form object

{{ form.non_field_errors }}
<div class="fieldWrapper">
    {{ form.yourfield.errors }}
    <label for="{{ form.yourfield.id_for_label }}">yourfield:</label>
    {{ form.yourfield }}
</div>
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #django #jinja #extract #elements #form #object
ADD COMMENT
Topic
Name
1+8 =