We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb8fb46 commit 3fc629eCopy full SHA for 3fc629e
flask_mongoengine/__init__.py
@@ -88,7 +88,7 @@ def _create_connection(conn_settings):
88
89
# Handle uri style connections
90
if "://" in conn.get('host', ''):
91
- uri_dict = uri_parser.parse_uri(conn_settings['host'])
+ uri_dict = uri_parser.parse_uri(conn['host'])
92
conn['db'] = uri_dict['database']
93
94
return mongoengine.connect(conn.pop('db', 'test'), **conn)
0 commit comments