Django认证Mongodb [英] Django Authentication Mongodb

查看:178
本文介绍了Django认证Mongodb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨大家
我想用mongodb使用django的内置身份验证。我已经在网上看过,他们并不是真正的稳定的 解决方案。有没有人可以告诉我哪些人可以通过最少的黑客攻击实现这个目标?这将是巨大的。

解决方案

你不能简单地使用Django内置的认证与MongoDB,因为。不过,您可以使用第三个模块,例如 MongoEngine MongoKit ,以克服这个问题,因为他们都为MongoDB Django应用程序提供验证模块。


$ b $注意:MongoEngine的人员提供了一个非常棒的开源项目,名为 Mumblr 这是很有用的Django-MongoDB项目的起始点。


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.

解决方案

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.

这篇关于Django认证Mongodb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆