On Tue, Aug 25, 2015 at 6:10 PM, Hugo Kitano <hkitan...@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

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFHbX1J3meKf%3Dafo30Z4%3DtsE3LOMngN198ufEDVcb1cCxajaSA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to