Commits

remosu committed 89b3113

added backmongo_conf.py

Comments (0)

Files changed (3)

 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):
-from flask import Flask, request, jsonify, Response
+from flask import Flask, request, Response
 
 import backmongo
 

backmongo_conf.py

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