I'm using ImageKit 0.3.2, and I'd like to be able to have variables in
the directory generated by the thumbnail pre_cache bits. That is, I'd
like to be able to drop in the same kind of %Y/%m/%d stuff you can have
in upload_to for regular files. Reason for this is that I've got, for
this first project, 300k files to create. I'd rather not have all 300k
thumbnails in one directory if at all possible.
I've looked at the code, and don't see any means of handling this in
ImageKit itself. On the other hand, the relevant code in Django itself
is a one-line method:
def get_directory_name(self):
return
os.path.normpath(force_unicode(datetime.datetime.now().strftime(smart_str(self.upload_to))))
Would a capability like this be useful to add, in addition to the
filename, specname stuff that's already there? If so, I'll take a stab
at it. Don't know how immediately, I'm headed to Djangocon on Sunday.
Perhaps while I'm there, though.
Thanks,
---Peter