Updated the init of MinioBackend to meet Django's custom storage system requirements
"Django must be able to instantiate your storage system without any arguments"
The MinioBackend class can be used as a value for DEFAULT_FILE_STORAGE
MinioBackendStatic: A new subclass of MinioBackend for supporting django-minio-backend as a static files storage
Added missing docstrings throughout the project
DjangoExampleApplication extended by class GenericAttachment for demonstrating a FileField without an explicit storage backend
DjangoExampleProject settings.py has been extended with the following new values:
MINIO_MEDIA_FILES_BUCKET
MINIO_STATIC_FILES_BUCKET
Updated README.md
Moved default bucket names to variables for convenience
Default buckets are private by default -> no need to declare their privacy in settings.py anymore
Refactored non init occurrences of self._BUCKET_NAME to self.bucket for a cleaner code experience
Corrected a bug in MinioBackend > get_modified_time()
Added note in README.md: "Policy setting for default buckets is private."
Default behaviour improvements and explanations
New settings.py parameter: MINIO_BUCKET_CHECK_ON_SAVE [default=False]
Support for STATIC and MEDIA files
MinioBackend
to meet Django's custom storage system requirements "Django must be able to instantiate your storage system without any arguments" TheMinioBackend
class can be used as a value forDEFAULT_FILE_STORAGE
MinioBackendStatic
: A new subclass ofMinioBackend
for supporting django-minio-backend as a static files storageclass GenericAttachment
for demonstrating aFileField
without an explicit storage backendMINIO_MEDIA_FILES_BUCKET
MINIO_STATIC_FILES_BUCKET
README.md
self._BUCKET_NAME
toself.bucket
for a cleaner code experienceMinioBackend
>get_modified_time()
README.md
: "Policy setting for default buckets is private."Default behaviour improvements and explanations
MINIO_BUCKET_CHECK_ON_SAVE
[default=False]