Django Authentication Mongodb

2020-06-12 03:06发布

问题:

Hi everyone I want to use django's built in authentication with mongodb. I have looked online and they aren't really any stable and solid solutions.

Has anyone mongodb fans out there who can point out to me how this can be achieved with minimal hacking? That would be great.

回答1:

You can't simply use Django built in authentication with MongoDB because MongoDB is not supported as a back-end for django.db which is an ORM for Django Authentication. However you may use 3rd modules like MongoEngine or MongoKit to overcome this problem as they all provide Authentication Module for MongoDB Django apps.

Note: The folks at MongoEngine provide an awesome open source project named Mumblr which is good to use as a starter for your Django-MongoDB project.