About the project
Django-cassandra-engine is almost 4 years old Open Source project of the Django app that adds support to Cassandra database backend.
It provides all tools you need to start your journey with Apache Cassandra and Django Framework:
- integration with latest
cassandra-driver
and optionallycassandra-driver-dse
from Datastax - working
flush
,migrate
,sync_cassandra
,inspectdb
anddbshell
commands - support for creating/destroying test database
- automatic connection/disconnection handling
- storing sessions in Cassandra
- working Django forms
- usable admin panel with Cassandra models
Setup
Add
django_cassandra_engine
toINSTALLED_APPS
in yoursettings.py
file:INSTALLED_APPS = ('django_cassandra_engine',) + INSTALLED_APPS
Change
DATABASES
setting:DATABASES = { 'default': { 'ENGINE': 'django_cassandra_engine', 'NAME': 'db', 'TEST_NAME': 'test_db', 'HOST': 'db1.example.com,db2.example.com', 'OPTIONS': { 'replication': { 'strategy_class': 'SimpleStrategy', 'replication_factor': 1 } } } }
Project page is located here: https://github.com/r4fek/django-cassandra-engine
Documentation: https://r4fek.github.io/django-cassandra-engine/
Posted on Utopian.io - Rewarding Open Source Contributors