pytoolbox.django.storage module¶
Extra storages and mix-ins for building your own storages.
-
class
pytoolbox.django.storage.OverwriteMixin[source]¶ Bases:
objectUpdate get_available_name to remove any previously stored file (if any) before returning the name.
-
class
pytoolbox.django.storage.OverwriteFileSystemStorage(location=None, base_url=None, file_permissions_mode=None, directory_permissions_mode=None)[source]¶ Bases:
pytoolbox.django.storage.OverwriteMixin,django.core.files.storage.FileSystemStorageA file-system based storage that let overwrite files with the same name.