Skip to content
Justice Tech School

Rendering Forms

Render with as_p or by field.

Example
<form method="post">
  {% csrf_token %}
  {{ form.as_p }}
  <button>Save</button>
</form>

Exercise

Render as paragraphs.

{{ form.as }}

Quiz Test

How to show errors?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.