Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #127 from benjaoming/djtb
Browse files Browse the repository at this point in the history
Fix setup for latest django-debug-toolbar
  • Loading branch information
benjaoming committed Oct 10, 2016
2 parents 57432fe + 811d32d commit 3604e95
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eggplant_project/settings/base.py
Expand Up @@ -54,8 +54,8 @@

# Application definition

INSTALLED_APPS = (
'suit', # django-admin-bootstrapped
INSTALLED_APPS = [
'suit',

'django.contrib.admin',
'django.contrib.auth',
Expand Down Expand Up @@ -84,7 +84,7 @@
'eggplant.permissions',
'eggplant.profiles',
'eggplant.roles',
)
]

MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
Expand Down
7 changes: 7 additions & 0 deletions eggplant_project/urls.py
Expand Up @@ -35,3 +35,10 @@
url(r'^', include('eggplant.urls', namespace='eggplant')),

] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)


if settings.DEBUG:
import debug_toolbar
urlpatterns += [
url(r'^__debug__/', include(debug_toolbar.urls)),
]

0 comments on commit 3604e95

Please sign in to comment.