collectstatic to bucket folder

20 views
Skip to first unread message

Naveen Yadav

unread,
Mar 23, 2016, 6:46:39 AM3/23/16
to Django users
I'm serving static files from S3 using collectstatic command using djanog-storages, Right now it stores all the static content inside the S3 bucket, /s3-bucket/ Instead i want to store these files inside static folder under my bucket. /s3-bucket/static/
Message has been deleted

Bruno A.

unread,
Mar 23, 2016, 9:52:26 AM3/23/16
to Django users
I believe the S3BotoStorage class is using the setting AWS_LOCATION to decide where to store it.
Adding this to your settings.py should do the job:

AWS_LOCATION = os.environ.get('AWS_LOCATION', 'static')
Reply all
Reply to author
Forward
0 new messages