Browse Source

Update to boto3

This fixes S3 support
Karl Hobley 5 years ago
parent
commit
70ea9b1fae
2 changed files with 3 additions and 3 deletions
  1. 1 1
      bakerydemo/settings/production.py
  2. 2 2
      requirements/production.txt

+ 1 - 1
bakerydemo/settings/production.py

@@ -98,7 +98,7 @@ if 'AWS_STORAGE_BUCKET_NAME' in os.environ:
 
     INSTALLED_APPS.append('storages')
     MEDIA_URL = "https://%s/" % AWS_S3_CUSTOM_DOMAIN
-    DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
+    DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3Boto3Storage'
 
 LOGGING = {
     'version': 1,

+ 2 - 2
requirements/production.txt

@@ -7,8 +7,8 @@ dj-database-url==0.4.1
 uwsgi==2.0.17.1
 psycopg2==2.7.3.1
 whitenoise==3.2.2
-boto==2.45.0
-django-storages==1.6.5
+boto3==1.9.189
+django-storages==1.7.1
 # For retrieving credentials and signing requests to Elasticsearch
 botocore==1.12.33
 aws-requests-auth==0.4.0