On Tue, Aug 25, 2015 at 6:10 PM, Hugo Kitano <
hkit...@gmail.com> wrote:
>
> Here it is, very simple:
>
> <h1> Submit form: </h1>
> <form action="/stats/" method="post">
> {% csrf_token %}
> {{ form.as_p }}
> <p><input type="submit" value="Submit" /></p>
> </form>
>
Read this section of the manual, particularly the section starting
"Firstly, ...". The problems yo uare having are that you aren't
telling Django there are files to read in the POST, and even if the
files were being read from the POST, you aren't passing them to the
form.
https://docs.djangoproject.com/en/1.8/ref/forms/api/#binding-uploaded-files-to-a-form
Cheers
Tom