What is the best CouchDB backend for Django?

寵の児 提交于 2019-12-20 10:28:26

问题


I am evaluating using CouchDB in my new Django-project. Is there a good database backend in Django for CouchDB? I have tried searching but the projects that turn up seems very small and/or old and I can't make out what parts are solved regarding QuerySets, Auth, Sessions etc. Any help would be greatly appreciated.


回答1:


I did a project recently using Couchdbkit which worked very well - it has a Django extension which replicates a lot of the function of models and querysets. I actually wrote my own authentication backend using it, but I was able to simply modify the built-in one.

You do still need to get your head around how Couchdb works, though. I don't think you'll find anything that works as a standard database backend, allowing you to just use standard models/querysets without modification. Couchdb is non-relational and not SQL based, so the incompatibilities are too great.




回答2:


I wrote one that is on the opposite end of the spectrum from an ORM.

http://mikeal.github.com/couchquery/

It includes the features I've needed when using Python for CouchDB and the features a few other people have needed and sent me pull requests. It's not for everyone but I find it a lot more useful than libraries that feel like an ORM.

Couchdbkit is also great, benoitc recently wrote his own http library for better speed in couchdbkit than httplib or httplib2 were providing.



来源:https://stackoverflow.com/questions/2169737/what-is-the-best-couchdb-backend-for-django

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!