-
-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple cassandra configurations #144
Comments
For example |
It is giving me |
|
Please take a look at following example from testproject: https://github.com/r4fek/django-cassandra-engine/blob/f6d74090d560c7e9d86877051bb693d342de10b7/testproject/multiapp/models.py
|
I am creating models by inheriting DjangoCassandraModel not models.Model(as in example project). DjangoCassandraModel does not have |
I have multiple cassandra configurations.
my settings.py is as follows:
DATABASES = { 'db1': { 'ENGINE': 'django_cassandra_engine', 'NAME': 'keyspace1', 'HOST': 'host1', 'PORT': port1, 'OPTIONS': { 'replication': { 'strategy_class': 'SimpleStrategy', 'replication_factor': 'factor1' } } } 'db2': { 'ENGINE': 'django_cassandra_engine', 'NAME': 'keyspace2', 'HOST': 'host2', 'PORT': port2, 'OPTIONS': { 'replication': { 'strategy_class': 'SimpleStrategy', 'replication_factor': 'factor2' } } } } ...and so on
How to programmatically connect to different cassandra configurations when querying cassandra models. DB router is not working with cassandra.
The text was updated successfully, but these errors were encountered: