News for hackers. Stuff that matters.
Re:Getting started with Django, Pipeline, and S3 by rigid_airship on Friday April 04, 2014 @05:17PM (#7534454)
Yeah absolutely right, I'm just using the pipeline for my static files (i.e. styles, images, js) not for data pages. One more caveat I forgot to put in the post but should be mentioned is the collectstatic command. If you have a huge collection of static assets, collectstatic is painfully slow copying its files directly to the S3 bucket. In my case, I don't have a huge number of assets so it's not a big issue, but if anyone has any ideas for making collectstatic faster, I'd love to hear them
Re:Getting started with Django, Pipeline, and S3 by infecto on Friday April 04, 2014 @05:28PM (#7534511)
Checkout something like this.

https://github.com/antonagestam/collectfast

The problem is collectstatic will use modified date. When sending to S3 this means the entire static pipeline is uploaded each time. Packages like collectfast use the hash to look for difference and only uploads those files. Works reasonably well. We have had a few issues along the way that we have had to work through but its a start.

Re:Getting started with Django, Pipeline, and S3 by rigid_airship on Friday April 04, 2014 @07:50PM (#7535211)
that looks awesome, definitely going to give it a try. Thanks!
Re:Getting started with Django, Pipeline, and S3 by cyberdelia on Friday April 04, 2014 @09:26PM (#7535593)
You just need to wait for Django 1.7 and its ManifestStaticFilesStorage : https://docs.djangoproject.com/en/dev/ref/contrib/staticfile...