Provides a DB connection pool using gevent for Django, allowing concurrent database access in a gevent-ready manner. Current version 4.0.8, supports Django >= 4.2 and psycopg2/psycopg3. Release cadence is irregular.
pip install django-db-geventpoolVerified import paths — ran on the pinned version, not inferred.
Basic usage: monkey-patch gevent early, then use Django ORM normally. Pool is automatically used if DATABASES configuration includes OPTIONS with pool settings.
Upgrade Django to >=4.2, and use django-db-geventpool >=4.0.8.
Place 'import gevent.monkey; gevent.monkey.patch_all()' as the very first lines of your application entry point (e.g., wsgi.py, manage.py).
Use ENGINE as shown in the docs and set 'OPTIONS': {'psycopg3': True} in your DATABASES config.Configure DATABASES as documented, e.g. 'ENGINE': 'django_db_geventpool.backends.postgresql_psycopg2'.