https://github.com/ross/memcache-debug-panel
A django-debug-toolbar panel for memcached debugging information (memcache and pylibmc supported)
https://github.com/ross/memcache-debug-panel
Last synced: about 1 year ago
JSON representation
A django-debug-toolbar panel for memcached debugging information (memcache and pylibmc supported)
- Host: GitHub
- URL: https://github.com/ross/memcache-debug-panel
- Owner: ross
- License: bsd-3-clause
- Created: 2011-02-07T05:07:04.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2014-07-15T00:28:11.000Z (almost 12 years ago)
- Last Synced: 2025-03-15T19:37:57.606Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 203 KB
- Stars: 48
- Watchers: 4
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
======================
Memcache Debug Toolbar
======================
The Memcache Debug Toolbar is an add-on for Django Debug Toolbar for tracking
memcached usage. It currently supports both the ``pylibmc`` and ``memcache`` libraries.
This is definitely beta software, but I've found it useful in work and personal
projects. Feedback welcome, patches appreciated. - Ross McFarland
Installation
============
#. Install and configure `Django Debug Toolbar `_.
#. Add the ``memcache_toolbar`` app to your ``INSTALLED_APPS``.
#. Import the panel corresponding to the library you're using.
The following must be imported in your ``settings.py`` file so that it has a
chance to replace the caching library with one capable of tracking. You'll
probably want to import it in ``local_settings.py`` (if you use the pattern) or
at least wrap the import line in ``if DEBUG``:
For ``memcache``::
import memcache_toolbar.panels.memcache
For ``pylibmc``::
import memcache_toolbar.panels.pylibmc
Configuration
=============
#. Add the ``memcache`` or ``pylibmc`` panel to ``DEBUG_TOOLBAR_PANELS``.
You'll need to add the panel corresponding to the library you'll be using to
the list of debug toolbar's panels in the order in which you'd like it to
appear::
DEBUG_TOOLBAR_PANELS = (
...
'memcache_toolbar.panels.memcache.MemcachePanel',
# if you use pylibmc you'd include its panel instead
# 'memcache_toolbar.panels.pylibmc.PylibmcPanel',
)