Skip to content

Commit

Permalink
make heroku work with django
Browse files Browse the repository at this point in the history
  • Loading branch information
thadk committed Feb 23, 2013
1 parent b842d0e commit 5c093ae
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ log/*.log
coverage.html
.settings
doc

*.pyc
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: python app.py
web: python manage.py runserver 0.0.0.0:$PORT --noreload
Binary file removed peacecorps/__init__.pyc
Binary file not shown.
7 changes: 7 additions & 0 deletions peacecorps/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,10 @@
},
}
}

# Parse database configuration from $DATABASE_URL
import dj_database_url
DATABASES['default'] = dj_database_url.config()

# Honor the 'X-Forwarded-Proto' header for request.is_secure()
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
Binary file removed peacecorps/settings.pyc
Binary file not shown.

0 comments on commit 5c093ae

Please sign in to comment.