| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
clone via git and python setup.py install
OR
easy_install django-psycopg2-pool
Assuming you have Django installed and this app installed,
SOUTH_DATABASE_ADAPTERS = {
'default': "south.db.postgresql_psycopg2",
}
DATABASES = {
'default': {
'ENGINE': 'django_psycopg2_pool.gevent',
'NAME': 'myproject_db',
'USER': 'myproject',
'PASSWORD': 'mypassword',
'HOST': '/var/run/postgresql', # When running postgres on unix socket
'PORT': '', # Empty if using unix socket
'POOL_SIZE' : 20, # slightly less than postgres max_connections / worker processes
}
}
This package includes a modified version of the gevent example psycopg2_pool Thank you to the author(s) of gevent and psyocopg2_pool
| Back | FazBrowse Home | New Git URL |