Created
November 12, 2012 13:31
-
-
Save ndarville/4059410 to your computer and use it in GitHub Desktop.
Django on Heroku
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: gunicorn myproject.wsgi -b 0.0.0.0:$PORT | |
# web: sh ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
psycopg2 | |
dj-database-url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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