I am trying to create a form for a library where a user can perform 2 actions: add a new book or open the stored information of an existing one. Books have 2 fields (title and a
Supplement to J. Ghyllebert's answer to address rendering question in comments. Template rendering:
{% csrf_token %} {{ form.as_p }}
Or single field:
{% csrf_token %} {{ form.days.label }} {{ form.days }}
Documentation: https://docs.djangoproject.com/en/3.1/topics/forms/#the-template