Skip to main content

UNKNOWN

Project description

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

  1. Install and configure Django Debug Toolbar.

  2. Add the memcache_toolbar app to your INSTALLED_APPS.

  3. 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

  1. 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',
    )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

memcache_toolbar-0.5.2.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file memcache_toolbar-0.5.2.tar.gz.

File metadata

File hashes

Hashes for memcache_toolbar-0.5.2.tar.gz
Algorithm Hash digest
SHA256 f25277d2457f52d028fa57a59a59747113881d8266887ce8ac0f077836c55a4c
MD5 314e00bba89658adef45219fb4275476
BLAKE2b-256 f05e92406d616bdf6fc8171376b05234b60ee72282e3f99f582676d23af42044

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page