I am creating django app, I am using
- django 1.10
- mongodb in backend.
- To connect with mongodb I am using mongoengine 0.11 and pymongo 3.4
when I try to import User from mongoengine.django.auth, it is giving error as-
from mongoengine.django.auth import User
ImportError: No module named django.auth
can anyone help me to implement authentication using mongoengine. Some posts suggest that I should use mongoengine 0.9 but I am afraid to downgrade version as we are using mongoengine 0.11 on production and there is lot of code already written using it.
Can you please suggest me solution which does not involve changing version of above mentioned packages. Whereas I can use any other stable packages as long as existing functionality doesn't break. Or is there any way to implement authentication using django's custom authentication classes, and use relational database only for authentication.