On Sunday 14 June 2015 00:13:33 Mark Nunberg wrote:
> Hi folks!
> 
> I apologize in advance if this is the wrong venue for this discussion
> 
> I'm trying to determine the best means by which I might be able to add
> Couchbase (http://www.couchbase.com) support to Django. I've come across
> something called "django-nonrel" - it seems to have scarce documentation
> and doesn't seem to have much activity as of late. I've also seen that
> another non-relational database (Cassandra) has a django backend that
> bypasses the nonrel fork, though its README
> (https://github.com/r4fek/django-cassandra-engine) seems to suggest one
> needs to use cqlengine for this?
> 
In addition to Tim's notes, please consider that django-cassandra-engine is 
not a database-engine in the regular sense -- it does not seem to support 
Django models, but only cqlengine models. You can probably use it to build a 
Cassandra-based web application, utilizing Django's request-handling 
facilities and other non-database-related utilities, but you will not be able 
to use most of the Django eco-system. From your description, it is not clear 
to me if you can do better for CouchBase, but perhaps you can.

You may also want to look at a project called django-mailer[1], which is an 
example of "faking" Django models -- that is, taking something which isn't a 
Django model (in this case, mail messages) and wrapping it in enough API to 
allow it to be used in the Django admin. This practice is officially supported 
since Django 1.8, which made the model metadata APIs public.

HTH,
        Shai.

[1] https://github.com/PirosB3/django-mailer

Reply via email to