5 <title>Minimal Django File Upload Example</title>
8 <!-- List of uploaded documents -->
11 {% for document in documents %}
12 <li><a href="{{ document.docfile.url }}">{{ document.docfile.name }}</a></li>
19 <!-- Upload form. Note enctype attribute! -->
20 <form action="{% url "ict_education.views.list" %}" method="post" enctype="multipart/form-data">
22 <p>{{ form.non_field_errors }}</p>
23 <p>{{ form.docfile.label_tag }} {{ form.docfile.help_text }}</p>
25 {{ form.docfile.errors }}
28 <p><input type="submit" value="Upload" /></p>