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
- Host: GitHub
- URL: https://github.com/subhamghimire/django-debug
- Owner: subhamghimire
- Created: 2019-07-03T13:13:09.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-03T13:52:10.000Z (almost 6 years ago)
- Last Synced: 2025-01-21T10:09:35.416Z (4 months ago)
- Topics: django, django-debug, django-debug-toolbar
- Size: 24.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
:heart:Install django debug toolbar on your system: [](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 upif 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