Metadata-Version: 2.1
Name: django-nplusone
Version: 0.0.2
Summary: Discover possible N+1 queries in your code base
Home-page: https://github.com/shaffooo/django_nplusone
Author: Shafiq Ur Rahman
Author-email: shafiq.tnoli@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 2
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Requires-Python: >=2.7
Description-Content-Type: text/markdown
Requires-Dist: Django (>=1.11.20)

# django_nplusone
Discover possible N+1 queries in Django ORM at runtime

The objective of this library is to help you discover any N+1s in your code at development time.  

## Installation

Install the package from PyPI using `pip` as following

```
pip install django_nplusone
```

## Usage

Once package is installed, you can register the package in your `settings.py` as:

```
import nplusone

if DEBUG:
    nplusone.show_nplusones()

```

This should start logging possible N+1s warnings using your logger configuration. The library uses standard python `logging` module and uses logger by the name of `nplusone`.



