Skip to content
Snippets Groups Projects
Commit 2b1b385e authored by Ben Adida's avatar Ben Adida
Browse files

moved to modern django connection pooling (of sorts)

parent 48ac47f9
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,6 @@ dj_database_url==0.3.0 ...@@ -16,7 +16,6 @@ dj_database_url==0.3.0
django-sslify==0.2.7 django-sslify==0.2.7
django_webtest==1.7.8 django_webtest==1.7.8
webtest==2.0.18 webtest==2.0.18
django-db-pool==0.0.10
django-secure==1.0.1 django-secure==1.0.1
bleach==1.4.1 bleach==1.4.1
boto==2.27.0 boto==2.27.0
......
...@@ -45,8 +45,8 @@ SOUTH_DATABASE_ADAPTERS = {'default':'south.db.postgresql_psycopg2'} ...@@ -45,8 +45,8 @@ SOUTH_DATABASE_ADAPTERS = {'default':'south.db.postgresql_psycopg2'}
if get_from_env('DATABASE_URL', None): if get_from_env('DATABASE_URL', None):
import dj_database_url import dj_database_url
DATABASES['default'] = dj_database_url.config() DATABASES['default'] = dj_database_url.config()
DATABASES['default']['ENGINE'] = 'dbpool.db.backends.postgresql_psycopg2' DATABASES['default']['ENGINE'] = 'django.db.backends.postgresql_psycopg2'
DATABASES['default']['OPTIONS'] = {'MAX_CONNS': 1} DATABASES['default']['CONN_MAX_AGE'] = 600
# Local time zone for this installation. Choices can be found here: # Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment