forked from DGNum/gestioCOF
debug toolbar
This commit is contained in:
parent
d559549c06
commit
cb9b967d78
2 changed files with 8 additions and 1 deletions
|
@ -56,6 +56,7 @@ INSTALLED_APPS = (
|
||||||
)
|
)
|
||||||
|
|
||||||
MIDDLEWARE_CLASSES = (
|
MIDDLEWARE_CLASSES = (
|
||||||
|
'debug_toolbar.middleware.DebugToolbarMiddleware',
|
||||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
'django.middleware.common.CommonMiddleware',
|
'django.middleware.common.CommonMiddleware',
|
||||||
'django.middleware.csrf.CsrfViewMiddleware',
|
'django.middleware.csrf.CsrfViewMiddleware',
|
||||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import print_function
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.conf.urls import include, url
|
from django.conf.urls import include, url, patterns
|
||||||
from django.conf.urls.static import static
|
from django.conf.urls.static import static
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.views.generic.base import TemplateView
|
from django.views.generic.base import TemplateView
|
||||||
|
@ -92,3 +92,9 @@ my_urlpatterns = [
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^gestion/', include(my_urlpatterns))
|
url(r'^gestion/', include(my_urlpatterns))
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if settings.DEBUG:
|
||||||
|
import debug_toolbar
|
||||||
|
urlpatterns += patterns('',
|
||||||
|
url(r'^__debug__/', include(debug_toolbar.urls)),
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue