Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable support for newer aws regions #214

Merged
merged 1 commit into from
Feb 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

# Static Files and Media Storage
# -------------------------------------
boto==2.45.0
django-storages-redux==1.3.2
django-storages==1.5.2
boto3==1.4.4

# Caching
# -------------------------------------
Expand Down
5 changes: 4 additions & 1 deletion {{cookiecutter.github_repository}}/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,15 @@
# ------------------------
# See: http://django-storages.readthedocs.org/en/latest/index.html
INSTALLED_APPS += ('storages',)
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'

AWS_ACCESS_KEY_ID = env('DJANGO_AWS_ACCESS_KEY_ID')
AWS_SECRET_ACCESS_KEY = env('DJANGO_AWS_SECRET_ACCESS_KEY')
AWS_STORAGE_BUCKET_NAME = env('DJANGO_AWS_STORAGE_BUCKET_NAME')
AWS_QUERYSTRING_AUTH = False
AWS_S3_HOST = env('DJANGO_AWS_S3_HOST')
AWS_S3_REGION_NAME = env('DJANGO_AWS_S3_REGION_NAME')
AWS_S3_SIGNATURE_VERSION = env('DJANGO_AWS_S3_SIGNATURE_VERSION')

# AWS cache settings, don't change unless you know what you're doing.
AWS_EXPIRY = 60 * 60 * 24 * 7 # 1 week
Expand Down