How to connect Django to Cassandra Data base?

120 views
Skip to first unread message

youssef simo

unread,
May 9, 2014, 12:54:46 PM5/9/14
to django...@googlegroups.com

I have a project witch i have to develop with Django using Cassandra data base, i looked in documentation but there is just docs for mysql, sklite and postgres database not for Cassandra. I am looking for a sample way to connect Django to Cassandra:

I know i have to set the database config in file setting.py:

  
    "ENGINE": "django.db.backends.cassandra",   
    "NAME": "test",           
    "USER": "",    
    "PASSWORD": "",       
    "HOST": "127.0.0.1",    

but it throws me an error: Error was: No module named django_cassandra.base

Is there any one can help me ?

Babatunde Akinyanmi

unread,
May 9, 2014, 2:57:08 PM5/9/14
to Django users

You have to search google for a third party cassandra backend app as Django does not support nosql by default.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/50464f28-0b2b-49ed-982c-b71715cda2f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jonathan Baker

unread,
May 9, 2014, 3:01:47 PM5/9/14
to django...@googlegroups.com
To build upon Babatunde's answer, you can find more information here: https://code.djangoproject.com/wiki/NoSqlSupport



For more options, visit https://groups.google.com/d/optout.



--
Jonathan D. Baker
Developer
http://jonathandbaker.com
Reply all
Reply to author
Forward
0 new messages