Skip to content

Instantly share code, notes, and snippets.

@ndarville
Created November 12, 2012 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ndarville/4059410 to your computer and use it in GitHub Desktop.
Save ndarville/4059410 to your computer and use it in GitHub Desktop.
Django on Heroku
web: gunicorn myproject.wsgi -b 0.0.0.0:$PORT
# web: sh ...
psycopg2
dj-database-url
if 'HEROKU' in os.environ:
import dj_database_url
if 'HEROKU' in os.environ:
DATABASES['default'] = dj_database_url.config()
if 'HEROKU' in os.environ:
INSTALLED_APPS = 'gunicorn',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment