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