On 12.11.2008 18:52 Uhr, Israel Fdez. Cabrera wrote:
> Hi:
>
> I'm trying to upload some CSV file I need to import into a database;
> to do so I have the following Django form:
>
>    
[code snipped]
> this Django template:
>
> <source lang="HTML">
>
> <div id="formContainer">
>     <form method="post" action="/ea/{{code}}/+equipamiento/">
>    
[code snipped]
> The problem is that in the view the form never validates, it always
> behaves like if the form were submitted with all fields blank.
>
> Any hint?
>
>    
You are mising the multipart/form-data bit in you html form.
Have a read in the docs:
http://docs.djangoproject.com/en/dev/ref/forms/api/#binding-uploaded-files-to-a-form

adi

-- 
Adi J. Sieker         mobile: +49 - 178 - 88 5 88 13
Freelance developer   web:    http://www.sieker.info/profile
SAP-Developer

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to