Skip to content

Commit

Permalink
Merge branch 'pstarace-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Feb 12, 2015
2 parents 7daa4ab + 925553f commit 22be046
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ckanext/datastore/db.py
Expand Up @@ -102,7 +102,11 @@ def _get_engine(data_dict):
engine = _engines.get(connection_url)

if not engine:
engine = sqlalchemy.create_engine(connection_url)
import pylons
extras = {'url': connection_url}
engine = sqlalchemy.engine_from_config(pylons.config,
'ckan.datastore.sqlalchemy.',
**extras)
_engines[connection_url] = engine
return engine

Expand Down

0 comments on commit 22be046

Please sign in to comment.