Hi -- Again, I'm new to Django (and for that matter, Python). I am using the S3Storage module (and currently set default_storage to S3Storage).
My model has a FileField which should store the file using S3 (because S3Storage is the default). I am creating an mp3 file using Popen, which is returning some "content," that is the mp3 data. Now, the question I have is how do I save the data to the model? I think I need to pass the model a File object, but I'm not sure how I get the data into a File object to pass to Model.field.save(). I don't want to have to save it twice! (And BTW, when I do an obj.save() on a model, so I have to re-get it or something, in order to retrieve the auto-increment id?) Okay, does anyone have an example of how to do this? It would be a great help!!! Liam --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---