Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/recamshak/django-debug-panel
django-debug-toolbar in WebKit DevTools. Works fine with background Ajax requests and non-HTML responses.
https://github.com/recamshak/django-debug-panel
Last synced: 5 days ago
JSON representation
django-debug-toolbar in WebKit DevTools. Works fine with background Ajax requests and non-HTML responses.
- Host: GitHub
- URL: https://github.com/recamshak/django-debug-panel
- Owner: recamshak
- License: bsd-3-clause
- Created: 2013-06-04T11:45:35.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-01-09T08:20:47.000Z (almost 5 years ago)
- Last Synced: 2024-11-30T21:02:55.002Z (12 days ago)
- Language: Python
- Size: 47.9 KB
- Stars: 404
- Watchers: 10
- Forks: 69
- Open Issues: 19
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- starred-awesome - django-debug-panel - django-debug-toolbar in WebKit DevTools. Works fine with background Ajax requests and non-HTML responses. (Python)
README
==================
Django Debug Panel
==================Django Debug Toolbar inside WebKit DevTools. Works fine with background AJAX requests and non-HTML responses.
Great for single-page applications and other AJAX intensive web applications.Installation
============#. Install and configure `Django Debug Toolbar `_
#. Install Django Debug Panel:
.. code-block:: bash
pip install django-debug-panel
#. Add ``debug_panel`` to your ``INSTALLED_APPS`` setting:
.. code-block:: python
INSTALLED_APPS = (
# ...
'debug_panel',
)#. Replace the Django Debug Toolbar middleware with the Django Debug Panel one. Replace:
.. code-block:: python
MIDDLEWARE_CLASSES = (
...
'debug_toolbar.middleware.DebugToolbarMiddleware',
...
)with:
.. code-block:: python
MIDDLEWARE_CLASSES = (
...
'debug_panel.middleware.DebugPanelMiddleware',
...
)#. (Optional) Configure your cache.
All the debug data of a request are stored into the cache backend ``debug-panel``
if available. Otherwise, the ``default`` backend is used, and finally if no caches are
defined it will fallback to a local memory cache.
You might want to configure the ``debug-panel`` cache in your ``settings``:.. code-block:: python
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
},# this cache backend will be used by django-debug-panel
'debug-panel': {
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
'LOCATION': '/var/tmp/debug-panel-cache',
'OPTIONS': {
'MAX_ENTRIES': 200
}
}
}#. Install the Chrome extension `Django Debug Panel `_