Getting started with Django, Pipeline, and S3
blog.iambob.me
blog.iambob.me
You can start your new project with the command (the hyphens break the line, but it should be executed with the settings in place): django-admin.py startproject --template=https://github.com/tommikaikkonen/django-twoscoops-heroku-s3... --extension=py,rst,dotfile,rb --name=Procfile,Gemfile,base.html,404.html PROJECT_NAME
Follow the rest of the README and/or buy the rest of the Two Scoops book (http://twoscoopspress.org/) if you're using django for any sort of large project (and want a standard/sane project layout).
If you decide to use it, you might want to look at the development of the original Django Twoscoops Project (https://github.com/twoscoops/django-twoscoops-project) during the last year or so, as they haven't been pulled in to my repo.
EDIT: https://gist.github.com/tsumnia/9986374
I still need to add proper logging to my application, but for now I print to the console if there is an error
I noticed people on HN default very often to "this is trolling"
That said, let me ask the first idiot-question: is this a precursor to a more complicated stack? Because what's the use-case for setting up Django with an asset-pipeline to S3? I mean, what is the Django instance itself running on? (as I imagine setting up Django on EC@ is generally the harder thing to do)
edit: I guess I'm assuming too much...the OP is assuming you have Django app already online and running, and this process moves over the asset files?
On our deployments we wrap up all the static pages, they get to S3 which goes to cloudfront. The link for cloudfront is generated on the fly and then injected back into wherever that asset was called.
This tutorial gets you a pretty good start and doing just that.
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.