flask-tumblelog
flask-tumblelog copied to clipboard
Errors NotRegistered flask-mongoengine Tutorial
Hi,
I started this Turial, Here
And get this error
**mongoengine.errors.NotRegistered: ** `Comment` has not been registered in the document registry. Importing the document class automatically registers it, has it been imported?
any idea. Thank you So much.
Thank you!!
No problem! Also, I had thisTypeError while testing flask-tumblelog and a couple of other example apps like this one:
TypeError: __init__() got an unexpected keyword argument 'snapshot'
It happens always when I retrive data from mongodb.
This only happened with pymongo 3.0. To fix it, downgrade pymongo to 2.8.
pip install pymongo==2.8