forked from theriverman/django-minio-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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
1 parent
3fc7e22
commit 4447a3c
Showing
10 changed files
with
200 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
DjangoExampleApplication/migrations/0003_genericattachment.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Django 3.2.3 on 2021-07-18 22:07 | ||
|
||
from django.db import migrations, models | ||
import uuid | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('DjangoExampleApplication', '0002_auto_20210313_1049'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='GenericAttachment', | ||
fields=[ | ||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), | ||
('file', models.FileField(upload_to='', verbose_name='Object Upload (to default storage)')), | ||
], | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.