r4fek / Django Cassandra Engine
Licence: bsd-2-clause
Django Cassandra Engine - the Cassandra backend for Django
Stars: ✭ 298
Programming Languages
python
139335 projects - #7 most used programming language
Projects that are alternatives of or similar to Django Cassandra Engine
Django Querycount
Middleware that Prints the number of DB queries to the runserver console.
Stars: ✭ 280 (-6.04%)
Mutual labels: django
Django Jet
Modern responsive template for the Django admin interface with improved functionality. We are proud to announce completely new Jet. Please check out Live Demo
Stars: ✭ 3,207 (+976.17%)
Mutual labels: django
Djangocms Admin Style
django CMS Admin Style is a Django Theme tailored to the needs of django CMS.
Stars: ✭ 282 (-5.37%)
Mutual labels: django
Android Nosql
Lightweight, simple structured NoSQL database for Android
Stars: ✭ 284 (-4.7%)
Mutual labels: cassandra
Django Schema Graph
An interactive graph of your Django model structure
Stars: ✭ 278 (-6.71%)
Mutual labels: django
Turkce Python Kaynaklari
Türkçe olarak hazırlanmış Python programlama dili ile ilgili içeriklerin derlendiği sayfa.
Stars: ✭ 295 (-1.01%)
Mutual labels: django
Zqxt
自强学堂源代码 https://code.ziqiangxuetang.com/django/django-tutorial.html
Stars: ✭ 287 (-3.69%)
Mutual labels: django
Korio
Korio: Kotlin cORoutines I/O : Virtual File System + Async/Sync Streams + Async TCP Client/Server + WebSockets for Multiplatform Kotlin 1.3
Stars: ✭ 282 (-5.37%)
Mutual labels: cassandra
Django Honeypot
🍯 Generic honeypot utilities for use in django projects.
Stars: ✭ 284 (-4.7%)
Mutual labels: django
Endoflife.date
Informative site with EoL dates of everything
Stars: ✭ 296 (-0.67%)
Mutual labels: django
Chatire
💬 Real time Chat application built with Vue, Django, RabbitMQ and uWSGI WebSockets.
Stars: ✭ 278 (-6.71%)
Mutual labels: django
Mozillians
Mozilla community directory -- A centralized directory of all Mozilla contributors!
Stars: ✭ 288 (-3.36%)
Mutual labels: django
Django Rest Framework Jwt
JSON Web Token Authentication support for Django REST Framework
Stars: ✭ 3,105 (+941.95%)
Mutual labels: django
Baize
白泽自动化运维系统:配置管理、网络探测、资产管理、业务管理、CMDB、CD、DevOps、作业编排、任务编排等功能,未来将添加监控、报警、日志分析、大数据分析等部分内容
Stars: ✭ 296 (-0.67%)
Mutual labels: django
Django Easy Audit
Yet another Django audit log app, hopefully the simplest one.
Stars: ✭ 289 (-3.02%)
Mutual labels: django
Django Cassandra Engine - the Cassandra backend for Django
All tools you need to start your journey with Apache Cassandra and Django Framework!
Features
- integration with latest
python-driver
and optionallydse-driver
from DataStax - working
flush
,migrate
,sync_cassandra
,inspectdb
anddbshell
commands - support for creating/destroying test database
- accepts all
Cqlengine
andcassandra.cluster.Cluster
connection options - automatic connection/disconnection handling
- works well along with relational databases (as secondary DB)
- storing sessions in Cassandra
- working django forms
- usable admin panel with Cassandra models
Installation
Recommended installation:
pip install django-cassandra-engine
Basic Usage
-
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 } } } }
-
Define some model:
# myapp/models.py import uuid from cassandra.cqlengine import columns from django_cassandra_engine.models import DjangoCassandraModel class ExampleModel(DjangoCassandraModel): example_id = columns.UUID(primary_key=True, default=uuid.uuid4) example_type = columns.Integer(index=True) created_at = columns.DateTime() description = columns.Text(required=False)
-
Run
./manage.py sync_cassandra
-
Done!
Documentation
The documentation can be found online here.
License
Copyright (c) 2014-2020, Rafał Furmański.
All rights reserved. Licensed under BSD 2-Clause License.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].