Skip to content

Instantly share code, notes, and snippets.

View StevenFerreira's full-sized avatar

Steven Ferreira StevenFerreira

View GitHub Profile
[flake8]
ignore = W601
max-line-length = 79
[isort]
line_length = 79
indent = 4
default_section = FIRSTPARTY
# known_first_party = put_app_directory_names,here
@StevenFerreira
StevenFerreira / storage.py
Created April 14, 2016 19:58
Non overwritable private S3 storage
# 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.