Created
June 2, 2022 12:50
-
-
Save mkushal10/565be702e2f55afc9f7cccac7d7ec5cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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