i am trying to accomplish the following on image/file fields in a
model in my app:

1. allow a filefield (managed through admin) to save its content to my
remote CDN (cachefly).

2. upon saving the file to my remote CDN, i want django to simply
overwrite any already existing file in the remote location and not
append the file name with "_" like the current django behavior on
image/file fields.

3. in the case of image files, i'd like to use a dynamic thumbnail
library to also save the generated thumbnail images (ala
sorl.thumbnail) directly to my CDN.

here's where i'm at so far and where i'm stumbling at this point.

i've integrated david larlet's awesome django-storages backend (http://
code.welldev.org/django-storages/overview/) and my app is currently
saving (via FTP) images and files from model fields onto my remote
cachefly account.  item #1 solved, on to item #2.  i'd like to
integrate django-storage's OverwriteStorage function into FTPStorage,
but - being a python newbie - i'm struggling with where to begin.
simply setting my model field like:

image = models.FileField(upload_to="secure/low_res", storage=fs,
OverwriteStorage())

obviously won't work.  using OverwriteStorage on its own on a model
field does the trick on my local server, but how do i go about
extracting the OverwriteStorage function and integrating it into
FTPStorage?  put it in the _save,  _put_file, or even _exists
function?

item #3: are there any image thumbnail libraries out there that allow
you the flexibility to use template tags for the thumbnails AND also
allow for the generated thumbnails to be saved to a remote file
storage?

lots of questions here, but i've got to think i'm not the only person
out there wishing for this functionality.  perhaps some of you have
already integrated/solved this challenge or part of it in one way or
another.

any help, assistance, guidance at all would be greatly appreciated!

thanks!

--~--~---------~--~----~------------~-------~--~----~
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