Oh yeah!! It was that! Thank you veru much Alex :)
I forgot to put the template code, Here it is (mayb useful for some
other):
--upload.html--
{% for field in form %}
{{ field.label_tag }}
{{ field }}
Do you use `enctype` attribute[1] of form tag?
[1]:
http://docs.djangoproject.com/en/dev/ref/forms/api/#binding-uploaded-files-to-a-form
On Thu, Nov 20, 2008 at 16:59, Marc Barranco <[EMAIL PROTECTED]> wrote:
>
> Hi!
> I'm trying to upload a file like the example in documentation in
> Django (h
Hi!
I'm trying to upload a file like the example in documentation in
Django (http://docs.djangoproject.com/en/dev/topics/http/file-
uploads/)
with the "Forms from Models".
But I can't upload the file because the form always return the error
"this field is required" although selecting a file before
3 matches
Mail list logo