Denis wrote: >I wonder what would it be the best way to save the file while im using >custom manipulator. >It contains objects from several models and im saving everingthing in >manipulator.save(). >Everything works great untill i have to save uploaded file. I wonder if >there is a way to save it >using django code? Ie, is there a way to reuse django code, which >stores file in MEDIA_ROOT >dir, uses 'upload_to' variable specified in model and makes file name >unique if needed. > > You are looking for this: http://www.djangoproject.com/documentation/db_api/#save-foo-file-filename-raw-contents
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---