On Github alazaro / heroku-talk
Start a simple django project.
mkvirtualenv django-sample pip install django-toolbelt cd ~/code django-admin.py startproject sample cd sample ./manage.py runserver
Add a Procfile
web: gunicorn sample.wsgi
And a requirements file
pip freeze > requirements.txt
$ heroku create dh-django-sample
$ heroku addons:add heroku-postgresql
vim sample/settings.py # Parse database configuration from $DATABASE_URL import dj_database_url DATABASES = {} DATABASES['default'] = dj_database_url.config()
Create a new repo for your code
git init
git remote add heroku git@heroku.com:dh-django-sample.git git add . git commit -m 'Initial commit' git push heroku master
$ heroku ps:scale web=1
More info on Heroku Devcenter