Skip to content
This repository was archived by the owner on Aug 26, 2021. It is now read-only.

Commit 3fc4159

Browse files
committed
Update README.rst
Improved dj_database_url example
1 parent ce6a10e commit 3fc4159

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ If you're using the `dj-database-url <https://crate.io/packages/dj-database-url/
2222

2323
import dj_database_url
2424

25-
DATABASES['default'] = dj_database_url.config()
26-
DATABASES['default']['ENGINE'] = 'django_postgrespool'
25+
DATABASES = {'default': dj_database_url.config(engine='django_postgrespool')}
2726

2827
If you're using `south <http://south.aeracode.org>`_:
2928

@@ -70,4 +69,4 @@ Check out the official `SQLAlchemy Connection Pooling <http://docs.sqlalchemy.or
7069
Django 1.3 Support
7170
------------------
7271

73-
django-postgrespool currently supports Django 1.4 and greater. See `this ticket <https://github.com/kennethreitz/django-postgrespool/pull/9>`_ for 1.3 support.
72+
django-postgrespool currently supports Django 1.4 and greater. See `this ticket <https://github.com/kennethreitz/django-postgrespool/pull/9>`_ for 1.3 support.

0 commit comments

Comments
 (0)