I had the same problem! then I understand that my Models caused this. For example, I had such models:
class Tile(models.Model): image = models.ImageField()
Then I wanted to have more than one tile referencing the same file on disk! The way I decided to solve this was to change my model structure:
class Tile(models.Model): image = models.ForeignKey(TileImage) class TileImage(models.Model): image = models.ImageField()
That, after I realized that it makes more sense, because if I want the same file to be saved more than one in my database, I need to create another table for it!
I think you can solve your problem too, just hoping that you can change the models!
EDIT
I also assume that you can use another repository, for example this: SymlinkOrCopyStorage
http://code.welldev.org/django-storages/src/11bef0c2a410/storages/backends/symlinkorcopy.py
Arthur Neves Nov 30 '11 at 20:51 2011-11-30 20:51
source share