Commit 2e5be1e7 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Add debug_toolbar support

Add support to use the Django debug toolbar with an easy setting in

Closes: #174
parent 88739cd5
......@@ -106,6 +106,10 @@ Running coverage:
coverage run --omit='env*' --source='.' test
coverage report
# Django Debug toolbar
To use the Django Debug toolbar install django-debug-toolbar and in
set DEBUG_TOOLBAR to True.
# Production Installation
from django.conf.urls import include, url
from django.conf.urls import url
from django.urls import include, path
from django.contrib import admin
from django.contrib.sitemaps import views as sitemap_views
from django.contrib.auth import views as auth_views
from django.conf import settings
from django.views.decorators.cache import cache_page
from django.views.generic import TemplateView
......@@ -104,6 +106,12 @@
url(r'^logout/$', auth_views.LogoutView.as_view(template_name='registration/logout.html'), name='logout'),
# django-toolbar
if settings.DEBUG:
import debug_toolbar
path('__debug__/', include(debug_toolbar.urls)),
# displays all archweb urls
def show_urls(urllist=urlpatterns, depth=0): # pragma: no cover
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment