I'm sure any longtime users of xlrd already know this, but I figured
I'd put it out there, since I had trouble tracking it down.

xlrd's open_workbook function takes a file_contents argument.  If you
set that to file_contents=uploaded_file.read(), you can pass .xls
sheets directly to it from a Django UploadedFile object.  It ignores
the path argument if you do.

James
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to