Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

DB-API2 connection pool for Django (for postgresql, mysql and sqlite)

Project Description

DB-API2 connection poolling for Django.


Is a simple application that uses the excellent SQLAlchemy connection pool to incorporate a it to django. All work is based on

Note: currently only been tested with postgresql, but in theory it should work perfectly with mysql and sqlite3.

How to install

Run python install to install, or place djorm_pool on your Python path.

You can also install it with: pip install djorm-ext-pool

How use it?

Very simple, put djorm_pool in your INSTALLED_APPS settings:



You can add options to sqlalchemy connection pool adding them in the settings “DJORM_POOL_OPTIONS”.


    "pool_size": 20,
    "max_overflow": 0,
    "recycle": 3600, # the default value

Also, can activate the pessimistic connection handling with DJORM_POOL_PESSIMISTIC:

# With this settings, every checkout of a connection from a pool
# executes an additional query for check the connection state.
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
djorm-ext-pool-0.8.2.tar.gz (2.9 kB) Copy SHA256 Checksum SHA256 Source Jun 14, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting