bottle-mongodb-example
bottle-mongodb-example copied to clipboard
It will be usefull to add a requirements.txt with the needed dependencies to run this project
from pymongo.objectid import ObjectId The call seems to work in versions of PyMongo < 2.2 In pymongo 2.2 or higher the call to import objectid is: from bson.objectid import ObjectId
Stuart, PIL appears to have installation packaging issue, which broke the sample in my environment. Please see https://code.djangoproject.com/ticket/6054 for details. I also updated the list of prerequisites to facilitate running...
For newer versions of pymongo you need to use bson to import objectid ``` modified: controllers.py new file: controllers.pyc new file: models.pyc ```