I did a demo of this at the November Mozilla Beer & Tell
Here's the blog post about the launch of Headsupper.io.
Run the tests
To run the tests first install
pip install mock) then run:
python manage.py test
pip install tox tox
.travis.yml file will also run coveralls by
If you want to benefit from Travis and Coveralls, you will need to activate them both for your project.
Oh, and you might want to change the "Build Status" and "Coverage Status" links at the top of this file to point to your own travis and coveralls accounts.
pip install coverage then run:
coverage run ./manage.py test
Then to see the report run:
coverage html open htmlcov/index.html
Or, just run:
./run_coverage.sh open htmlcov/index.html
Build the production bundle
This has nothing to do with Django. This is pure
npm run deploy
That'll create a
(These instructions are not maintained!)
- heroku create
- heroku config:set DEBUG=False ALLOWED_HOSTS=.herokuapp.com, SECRET_KEY=something_secret DATABASE_URL gets populated by heroku once you setup a database.
- git push heroku master