Django 1.8和MongoDB? [英] Django 1.8 and MongoDB?

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

问题描述

这个问题已经在StackOverflow上问过了,

This question is already asked on StackOverflow,

提出的问题可以追溯到2013年,现在是2015年,Django迅速成长.

The asked questions date back to 2013, Its 2015 now and Django has grown up fast.

从2015年起,将mongodb与Django 1.8一起使用会带来什么情况?

What is the situation of using mongodb with Django 1.8 as of 2015?

Django是否开箱即用(使用数据库适配器)支持Monogodb?还是应该使用django-nonrel之类的其他发行版?

Does Django support Monogodb out of the box (with db adapters)? or another distribution like django-nonrel should be used?

推荐答案

我不认为Django为MongoDB提供开箱即用的支持.它更适合于关系数据库.

I don't think Django provides out of the box support for MongoDB. It is more tailored for relational databases.

一种解决方案可能是使用 MongoEngine.

One solution could be using MongoEngine.

MongoEngine是一个对象文档映射器,用Python编写,用于 与MongoDB合作.

MongoEngine is an Object-Document Mapper, written in Python for working with MongoDB.

您只需要使用Django配置MongoEngine,然后它就可以正常工作了.

You need to just configure MongoEngine with Django and then it should work comfortably.

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

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