Commits

remosu  committed 89b3113

added backmongo_conf.py

  • Participants
  • Parent commits e7f7a0f

Comments (0)

Files changed (3)

File backmongo.py

 from bson import json_util
 from pymongo.objectid import ObjectId
 
+from backmongo_conf import DATABASE, OID_PREFIX
+
+
 CONNECTION = pymongo.Connection()
-DATABASE = "backmongo"
 DB = CONNECTION[DATABASE]
-OID_PREFIX = 'oid_'
 
 def clean_id(id):
     if id.startswith(OID_PREFIX):

File backmongo_app.py

-from flask import Flask, request, jsonify, Response
+from flask import Flask, request, Response
 
 import backmongo
 

File backmongo_conf.py

+
+DATABASE = "backmongo"
+OID_PREFIX = 'oid_'