2
votes

I'm attempting to upload the image component of an ImageField directly to S3 through the django admin when I create a record. Is it possible to achieve this directly by simply specifying the AWS S3 url for static files in

MEDIA_URL = 'https://s3.amazonaws.com/myapp/media/'

and specifying boto in:

STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage'

or is it necessary to run the collectstatic command/upload using a homegrown form to submit to AWS. django-storages docs give no real indication of whether this is possible and preliminary attempts to upload images to S3 using admin have not yielded results.

1
Since Django 1.3 STATICS and MEDIA are separate. see: docs.djangoproject.com/en/dev/releases/1.3/…vartec

1 Answers