Re: Django and CouchDB
Hi folks, I am too very fond of non-SQL databases (no fixed schema, built-in replication, built-in webserver, RESTful API, etc.). So far, in order to use Django with CouchDB here is what I have come across so far - http://lethain.com/entry/2008/aug/18/an-introduction-to-using-couchdb-with-django/ - http://couchdbkit.org/docs/formalchemy.html - http://couchdbkit.org/docs/django-extension.html >From my pov, having native support for non-SQL databases with Django would totally rock! Initially I was very skeptical too (I have been using MySQL/PostgreSQL/Oracle for more than five years now) but after I got to know CouchDB, I am convinced that using a non-SQL database is often a lot better (save me lot of time, easier data modeling, way better for web apps than SQL databases, etc.). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Django and CouchDB
On Tue, Aug 18, 2009 at 11:12 PM, sjtirtha wrote: > Yes, > > I do have interest to help on Object non-Relational Mapper. > Does Django has a kind of interfaces, where I can implement my own Object > non-Relational Mapper and inject it to Django? I don't want to seem rude, but this is one of those cases where if you need to ask the question, you're probably not going to be able to do it yourself. The interfaces aren't hard to find, and while some of the internals are complex, the gross structure can be easily discovered with a little bit of poking around. Yes, the interfaces exist. No, they aren't documented - up till now, they haven't needed to be documented. That's OK, though - this isn't something that we expect most end-users to be concerned with. The interfaces may also require some refinement and tweaking to suit the particular needs of a particular non-relational store. The discussion on django-dev is trying to establish what these modifications are. If you still want to help out, start poking around the code and read up on the history of discussion on django-dev. Yours, Russ Magee %-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Django and CouchDB
Yes, I do have interest to help on Object non-Relational Mapper. Does Django has a kind of interfaces, where I can implement my own Object non-Relational Mapper and inject it to Django? Regards, Steve On Tue, Aug 18, 2009 at 3:17 PM, Russell Keith-Magee wrote: > > On Tue, Aug 18, 2009 at 7:40 PM, Joshua Partogi > wrote: > > > > > > On Tue, Aug 18, 2009 at 8:17 PM, sjtirtha wrote: > >> > >> Hi, > >> > >> i found some Python API to access couchDB. > >> I'm asking here for experience. > > > > Django model is really tight to RDBMS. You are going to have a hard time > > making django model work with non-RDBMS > > This isn't entirely correct. Django's ORM is in no way tied to > relational databases. Look at the public API for the ORM - the > interface that is provided is object based, not relational. You don't > call "SELECT * FROM table", you call Model.objects.all() > > Django's ORM doesn't currently have any non-relational > implementations, so in practice, for newcomers (such as the original > poster), this means that it isn't currently trivial to use a > non-relational store with Django's ORM. > > The key word in that sentence is _currently_. The ORM has been > specifically designed to accommodate non-relational data stores. There > have been several recent discussions on adding a Google AppEngine or > Amazon SimpleDB 'database backend'. CouchDB could also fall under this > umbrella. > > Building these backends won't be trivial, and may require some minor > modifications to the existing Django code, but they are certainly > possible in the gross framework that has been provided. If you want to > help out Django and you have interest and expertise in a particular > non-relational datastore, this would be a great way to get involved. > > Yours, > Russ Magee %-) > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Django and CouchDB
On Tue, Aug 18, 2009 at 7:40 PM, Joshua Partogi wrote: > > > On Tue, Aug 18, 2009 at 8:17 PM, sjtirtha wrote: >> >> Hi, >> >> i found some Python API to access couchDB. >> I'm asking here for experience. > > Django model is really tight to RDBMS. You are going to have a hard time > making django model work with non-RDBMS This isn't entirely correct. Django's ORM is in no way tied to relational databases. Look at the public API for the ORM - the interface that is provided is object based, not relational. You don't call "SELECT * FROM table", you call Model.objects.all() Django's ORM doesn't currently have any non-relational implementations, so in practice, for newcomers (such as the original poster), this means that it isn't currently trivial to use a non-relational store with Django's ORM. The key word in that sentence is _currently_. The ORM has been specifically designed to accommodate non-relational data stores. There have been several recent discussions on adding a Google AppEngine or Amazon SimpleDB 'database backend'. CouchDB could also fall under this umbrella. Building these backends won't be trivial, and may require some minor modifications to the existing Django code, but they are certainly possible in the gross framework that has been provided. If you want to help out Django and you have interest and expertise in a particular non-relational datastore, this would be a great way to get involved. Yours, Russ Magee %-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Django and CouchDB
Would be easy enough if you just wanted to use the routing, views and template parts of Django though. Sorry, no experience though something that I've been wanting to try for a while. Unfortunately, the current project doesn't call for that kind of db. 2009/8/18 Joshua Partogi : > > > On Tue, Aug 18, 2009 at 8:17 PM, sjtirtha wrote: >> >> Hi, >> >> i found some Python API to access couchDB. >> I'm asking here for experience. > > Django model is really tight to RDBMS. You are going to have a hard time > making django model work with non-RDBMS > > > > -- > http://blog.scrum8.com > http://twitter.com/scrum8 > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Django and CouchDB
On Tue, Aug 18, 2009 at 8:17 PM, sjtirtha wrote: > Hi, > > i found some Python API to access couchDB. > I'm asking here for experience. > Django model is really tight to RDBMS. You are going to have a hard time making django model work with non-RDBMS -- http://blog.scrum8.com http://twitter.com/scrum8 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Django and CouchDB
Hi, i found some Python API to access couchDB. I'm asking here for experience. Regards, Steve On Tue, Aug 18, 2009 at 5:08 AM, 邓超 wrote: > You can google it. I have read once, but forget the link address now. > > 2009/8/18 sjtirtha > > Hi, >> >> can some body share about his experience using Django and CouchDB? >> I found some python API that can be used to access CouchDB, which one is >> the best and suitable to Django Framework. >> >> Regards, >> STeve >> >> >> > > > -- > Deng Chao > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Django and CouchDB
You can google it. I have read once, but forget the link address now. 2009/8/18 sjtirtha > Hi, > > can some body share about his experience using Django and CouchDB? > I found some python API that can be used to access CouchDB, which one is > the best and suitable to Django Framework. > > Regards, > STeve > > > > -- Deng Chao --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Django and CouchDB
Hi, can some body share about his experience using Django and CouchDB? I found some python API that can be used to access CouchDB, which one is the best and suitable to Django Framework. Regards, STeve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---