Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save mkushal10/565be702e2f55afc9f7cccac7d7ec5cf to your computer and use it in GitHub Desktop.

Select an option

Save mkushal10/565be702e2f55afc9f7cccac7d7ec5cf to your computer and use it in GitHub Desktop.
1. install django debug toolbar
pip install django-debug-toolbar
2. settings.py
INSTALLED_APPS = [
'..',
'debug_toolbar',
]
MIDDLEWARE = [
'debug_toolbar.middleware.DebugToolbarMiddleware',
'...',
]
INTERNAL_IPS = [
'127.0.0.1',
]
3. urls.py - project folder
import debug_toolbar
from django.urls import path, include
urlpatterns = [
...,
path('__debug__/', include(debug_toolbar.urls)),
]
# Learn
https://www.youtube.com/watch?v=H-vLUoXKKIs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment