Last modified by Leon Poon on 2021/03/23 13:17

From version 8.1
edited by Leon Poon
on 2021/03/23 05:17
Change comment: Renamed back-links.
To version 3.1
edited by Leon Poon
on 2018/12/24 12:27
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,8 +1,8 @@
1 -First, [[set up a virtualenv>>doc:Computing Newbies.Python Newbies.How to Create a VirtualEnv.WebHome]].
1 +First, [[set up a virtualenv>>doc:Main.How to Create a VirtualEnv.WebHome]].
2 2  
3 -Make sure that your [[mongo server is running>>doc:Computing Newbies.How to connect to mongo server.WebHome]].
3 +Make sure that your [[mongo server is running>>doc:Main.How to connect to mongo server.WebHome]].
4 4  
5 -[[In the virtualenv, install pymongo>>doc:Computing Newbies.Python Newbies.How to add libraries to a virtualenv.WebHome]], then try out this .py file [[in the virtualenv>>doc:Computing Newbies.Python Newbies.How to Run a Python Script in a VirtualEnv.WebHome]].
5 +[[In the virtualenv, install pymongo>>doc:Main.How to add libraries to a virtualenv.WebHome]], then try out this .py file [[in the virtualenv>>doc:Main.How to Run a Python Script in a VirtualEnv.WebHome]].
6 6  
7 7  {{code language="python"}}
8 8  from pymongo import MongoClient
... ... @@ -12,6 +12,6 @@
12 12  print(collection.insert_one({'my_key': 'some value'}))
13 13  {{/code}}
14 14  
15 -The printout shows the ID assigned by mongodb to the data you stored. You can now try to [[look it up>>doc:Computing Newbies.Python Newbies.How to Use Pymongo and Search for Data.WebHome]].
15 +The printout shows the ID assigned by mongodb to the data you stored. You can now try to [[look it up>>doc:Main.How to Use Pymongo and Search for Data.WebHome]].
16 16  
17 17  You can also follow [[tutorial>>url:https://api.mongodb.com/python/current/tutorial.html%7Cthis]].