Hacker News new | ask | show | jobs
by tmarthal 4466 days ago
Note: there is a great Django template at https://github.com/tommikaikkonen/django-twoscoops-heroku-s3... that will automate the creation and uploading of the s3 assets. It uses `collectstatic` to upload the static resources to be hosted from s3 (which seems to be the more typical way to do this). This template also uses heroku to host the dynamic portion of the app.

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).

1 comments

Author of that repo here, I'm glad you found it useful! I've used that template as a starting template for purely personal projects, so beware: it does not have the polish of a well-maintained django package. But it's been convenient for getting new projects running up quickly on Heroku and S3.

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.