mirror of
https://github.com/kennethreitz/django-postgrespool.git
synced 2026-06-05 23:00:19 +00:00
python
This commit is contained in:
+7
-2
@@ -9,14 +9,19 @@ It's powered by the lovely and beautiful SQLAlchemy.
|
||||
Usage
|
||||
-----
|
||||
|
||||
Using Django-PostgresPool is simple, just set ``django_postgrespool`` as your connection engine::
|
||||
Using Django-PostgresPool is simple, just set ``django_postgrespool`` as your connection engine:
|
||||
|
||||
.. code:: python
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django_postgrespool'
|
||||
...
|
||||
|
||||
If you're using the `dj-database-url <https://crate.io/packages/dj-database-url/>`_ module::
|
||||
If you're using the `dj-database-url <https://crate.io/packages/dj-database-url/>`_ module:
|
||||
|
||||
.. code:: python
|
||||
|
||||
|
||||
import dj_database_url
|
||||
|
||||
|
||||
Reference in New Issue
Block a user