I followed this tutorial to set up Amazon S3 with Django. But since I am using Python 3.3, I installed a Python-3 compatible fork of django storages and boto3 .
Here is the settings.py file:
AWS_STORAGE_BUCKET_NAME = os.environ['LIVIN_AWS_STORAGE_BUCKET_NAME'] S3_REGION_NAME = os.environ['LIVIN_S3_REGION_NAME'] AWS_ACCESS_KEY_ID = os.environ['LIVIN_AWS_ACCESS_KEY_ID'] AWS_SECRET_ACCESS_KEY = os.environ['LIVIN_AWS_SECRET_ACCESS_KEY'] AWS_S3_CUSTOM_DOMAIN = '%s.s3.amazonaws.com' % AWS_STORAGE_BUCKET_NAME STATIC_URL = "https://%s/" % AWS_S3_CUSTOM_DOMAIN
When I try python manage.py collectstatic , I get this error:
ImportError: No module named 'boto' During handling of the above exception, another exception occurred: ... django.core.exceptions.ImproperlyConfigured: Could not load Boto S3 bindings. See https://github.com/boto/boto
The memory backend seems to be boto one, not boto3.
source share