This file contains hidden or 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
| [flake8] | |
| ignore = W601 | |
| max-line-length = 79 | |
| [isort] | |
| line_length = 79 | |
| indent = 4 | |
| default_section = FIRSTPARTY | |
| # known_first_party = put_app_directory_names,here |
This file contains hidden or 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
| # Package | |
| # pip install django-storages | |
| from storages.backends.s3boto import S3BotoStorage | |
| class NonOverwritablePrivateS3BotoStorage(S3BotoStorage): | |
| """ | |
| AWS S3 storage that will save files to the 'media' directory without | |
| overwriting them. |