Detect N+1 queries in your Django application. v2.1.0 supports Django 4.2+ and Python >=3.9. Maintenance mode: no new features, bug fixes only. GitHub is archived.
pip install django-zealVerified import paths — ran on the pinned version, not inferred.
Simply import zeal at the top of your Django app entry point (e.g., settings.py or manage.py). It will automatically log N+1 queries detected during request/response cycle.
Replace 'from zeal import Zeal' or similar with 'import zeal'.
Ensure your queries use Django ORM (e.g., related_name, prefetch_related).
Use environment variable ZEAL_VERBOSE instead of zeal.settings.VERBOSE.
Add 'import zeal' at the very top of manage.py or wsgi.py, before any project imports.