entity ident could be even simpler with flask + pymongo instead of django
This commit is contained in:
@@ -5,7 +5,7 @@ app = Flask(__name__)
|
||||
app.config["MONGO_URI"] = "mongodb://localhost:27017/myDatabase"
|
||||
mongo = PyMongo(app)
|
||||
|
||||
mongo.db.test.save({'_id': 0, 'foo': 'bar'})
|
||||
mongo.db.test.save({'_id': 0, 'foo': {'test': 'this'}})
|
||||
mongo.db.test.save({'_id': 1, 'suu': 'sar'})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user