Skip to main content

MongoDB panel for the Django Debug Toolbar

Project description

Info:

An extension panel for Rob Hudson’s Django Debug Toolbar that adds MongoDB debugging information

Author:

Harry Marr (http://github.com/hmarr, http://twitter.com/harrymarr)

Setup

Add the following lines to your settings.py:

INSTALLED_APPS = (
    ...
    'debug_toolbar_mongo',
    ...
)

DEBUG_TOOLBAR_PANELS = (
    ...
    'debug_toolbar_mongo.panel.MongoDebugPanel',
    ...
)

An extra panel titled “MongoDB” should appear in your debug toolbar.

Note that this should work with any Django application that uses PyMongo.

Obtaining stack traces can slow down queries significantly. To turn them off add the following lines to your settings.py:

DEBUG_TOOLBAR_MONGO_STACKTRACES = False

Disclaimer: only tested in latest Chrome, may fall to pieces in other browers. If you feel like fixing it, contributions are welcome!

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

django-debug-toolbar-mongo-0.1.10.tar.gz (7.6 kB view details)

Uploaded Source

File details

Details for the file django-debug-toolbar-mongo-0.1.10.tar.gz.

File metadata

File hashes

Hashes for django-debug-toolbar-mongo-0.1.10.tar.gz
Algorithm Hash digest
SHA256 2c327073ba4476b8e4509d460e0e91388cc56e3152bb04e389700c91e084ce86
MD5 33e0d4d332b131b4224bae553dbcbf9d
BLAKE2b-256 128224b7baf1af274b084978c740abedd8d2c2dcc451082c5c91596574345422

See more details on using hashes here.

Supported by

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