Skip to content

Commit

Permalink
heroku enhs
Browse files Browse the repository at this point in the history
  • Loading branch information
zhebrak committed Feb 22, 2015
1 parent 7f6033d commit 8a92de0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: gunicorn example.wsgi
web: pip install gunicorn && python manage.py migrate --noinput && gunicorn example.wsgi
1 change: 1 addition & 0 deletions example/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
}

STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'example/static')

STATICFILES_FINDERS = (
"django.contrib.staticfiles.finders.FileSystemFinder",
Expand Down
11 changes: 7 additions & 4 deletions example/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@


if settings.DEBUG:
import debug_toolbar
urlpatterns += patterns('',
url(r'^__debug__/', include(debug_toolbar.urls)),
)
try:
import debug_toolbar
urlpatterns += patterns('',
url(r'^__debug__/', include(debug_toolbar.urls)),
)
except ImportError:
pass

0 comments on commit 8a92de0

Please sign in to comment.