An open API service indexing awesome lists of open source software.

https://github.com/subhamghimire/django-debug

This is the repository for django debug stuffs
https://github.com/subhamghimire/django-debug

django django-debug django-debug-toolbar

Last synced: 2 months ago
JSON representation

This is the repository for django debug stuffs

Awesome Lists containing this project

README

        

:heart:Install django debug toolbar on your system: [![](https://img.shields.io/badge/pip-django__toolbar-yellowgreen.svg)](https://pypi.org/project/django-debug-toolbar/)

pip install django-debug-toolbar

In settings.py Do Following


INSTALLED_APPS = [

# ...
'django.contrib.staticfiles',
# ...
'debug_toolbar',]
STATIC_URL = '/static/'

*Enable Middleware*:

MIDDLEWARE = [

# ...
'debug_toolbar.middleware.DebugToolbarMiddleware',
# ...]

*Configure internal ips*:

INTERNAL_IPS = [

# ...
'127.0.0.1',
# ...]

In The Project's urls.py Do Following

_Setting up url conf_:


from django.conf import settings
from django.conf.urls import include, url # For django versions before 2.0from django.urls import include, path # For django versions from 2.0 and up

if settings.DEBUG:
import debug_toolbar
urlpatterns = [
path('__debug__/', include(debug_toolbar.urls)),
# For django versions before 2.0:
# url(r'^__debug__/', include(debug_toolbar.urls)),
] + urlpatterns