Skip to content

Commit

Permalink
Support for STATIC and MEDIA files
Browse files Browse the repository at this point in the history
  - 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
  • Loading branch information
theriverman committed Jul 19, 2021
1 parent ce60623 commit 8514d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_minio_backend/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def same_endpoints(self) -> bool:
@property
def bucket(self) -> str:
"""Get the configured bucket's [self.bucket] name"""
return self.bucket
return self._BUCKET_NAME

@property
def is_bucket_public(self) -> bool:
Expand Down

0 comments on commit 8514d89

Please sign in to comment.