0

I keep getting this error when using django-cassandra-engine on a EC2 instance inside a VPN.

CQLEngineException: It is required to setup() cqlengine before executing queries.

It seems to run properly when running on a EC2 instance outside the VPN. The configuration I'm using is this:

DATABASES = {
    'default': {
        'ENGINE': 'django_cassandra_engine',
        'NAME': 'stgks',
        'TEST_NAME': 'test_db',
        'HOST': '172.95.95.343',
    }
}

There are two other nodes in the ring that contain the specified host.

E. Moffat
  • 3,165
  • 1
  • 21
  • 34
TheGeorgeous
  • 3,927
  • 2
  • 20
  • 33

1 Answers1

0

Turns out I was using the incompatible versions of Django, cassandra-driver and Django-cassandra-engine. Correcting the versions worked out

TheGeorgeous
  • 3,927
  • 2
  • 20
  • 33