Source

backmongo / backmongo.py

Diff from to

backmongo.py

 from pymongo.objectid import ObjectId
 
 try:
-    from backmongo_conf import DATABASE, OID_PREFIX
+    from backmongo_conf import DATABASE, OID_PREFIX, CONNECTION_ARGS
 except ImportError:
     DATABASE = 'backmongo'
     OID_PREFIX = 'oid_'
+    CONNECTION_ARGS = {}
 
-CONNECTION = pymongo.Connection()
+CONNECTION = pymongo.Connection(**CONNECTION_ARGS)
 DB = CONNECTION[DATABASE]