Set FILE_OVERWRITE per instance of S3BotoStorage

Issue #131 resolved
Matt Austin
created an issue

If I create two instances of S3BotoStorage (for example one for static files, and one for uploaded media) it would be preferable to set FILE_OVERWRITE on a per-instance basis. In my example, static files should be overwritten but uploaded media should not.

Comments (2)

  1. Jannis Leidel

    You can now easily set this per instance, either by subclassing the storage and setting a class attribute file_overwrite or by passing file_overwrite=True during initialization.

  2. Log in to comment