Commit 96ff7281 authored by delanoe's avatar delanoe

Revert "[FIX] pool engine. (maybe need to close somme connexions."

This reverts commit 73b88987.
parent 4c411e71
......@@ -12,10 +12,9 @@ def get_engine():
url = 'postgresql+psycopg2://{USER}:{PASSWORD}@{HOST}:{PORT}/{NAME}'.format(
**settings.DATABASES['default']
)
return create_engine( url
, use_native_hstore = True
, json_serializer = json_dumps
, pool_size=20, max_overflow=0
return create_engine(url,
use_native_hstore = True,
json_serializer = json_dumps,
)
engine = get_engine()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment