Complete the project specs from Learn.
This toolbar will help you have visibility such as over your context in templates and the queries that are running to get your model data.
https://django-debug-toolbar.readthedocs.io/en/latest/
python -m pip install django-debug-toolbarAdd "debug_toolbar" to your INSTALLED_APPS setting:
INSTALLED_APPS = [
# ...
"debug_toolbar",
# ...
]Add django-debug-toolbar’s URLs to your project’s URLconf urls.py:
from django.urls import include, path
urlpatterns = [
# ...
path('__debug__/', include('debug_toolbar.urls')),
]Add it to your MIDDLEWARE setting in settings.py:
MIDDLEWARE = [
# ...
"debug_toolbar.middleware.DebugToolbarMiddleware",
# ...
]Add the following to settings.py:
INTERNAL_IPS = [
# ...
"127.0.0.1",
# ...
]