Re: Problems with file upload and model forms

2008-11-21 Thread Marc Barranco
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 }}

Re: Problems with file upload and model forms

2008-11-20 Thread Alex Koshelev
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

Problems with file upload and model forms

2008-11-20 Thread Marc Barranco
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