django-debug-toolbar |Every Django Developer Should Use It
Posted by Admin in Articles, Programming, Python
In this post I’ll describe how to use useful django plugin called django-debug-toolbar .
If you’re Linux user the easiest way to install it by using pip, just enter command
pip install django-debug-toolbar
Other way to install it is by downloading it from github https://github.com/django-debug-toolbar/django-debug-toolbar
. After you download django-debug-toolbar , extract it on your computer, navigate to extracted directory and enter
python install setup.py
Before you start the development server, you need to change settings.py
INSTALLED_APPS = (
# …
‘django.contrib.staticfiles’,
# …
# If you’re using Django 1.7.x or later
‘debug_toolbar.apps.DebugToolbarConfig’,
# If you’re using Django 1.6.x or earlier
‘debug_toolbar’,
)
you can check your django version from python shell
import django
django.VERSION
django-debug-toolbar looks as shown below
You can check which view is used on specific URL, which REQUESTS, POST,GET,SESSION data, static files, templates…
For more information about django debug toolbar visit http://django-debug-toolbar.readthedocs.org/en/1.2/