Comments (4)
thanks. I corrected the installed_apps to resolve the problem.
from django-cassandra-engine.
Hi @vbrchn,
Thanks for the report. Do you have any model defined in your application? Is this application included in INSTALLED_APPS
list? Could you paste your models.py
file contents here?
from django-cassandra-engine.
Thanks for your reply.
Do you have any model defined in your application? Could you paste your models.py file contents here?
Yes. They are defined inside model.py. I tried without keyspace for each model
Models.py:
from cassandra.cqlengine import columns
from cassandra.cqlengine import models
class ExampleModel(models.Model):
keyspace = 'n1'
id = columns.BigInt(primary_key=True)
created_at = columns.DateTime()
deleted = columns.Boolean(default=False)
class ExampleModel2(models.Model):
keyspace = 'n1'
id = columns.BigInt(primary_key=True)
class TestProjectModel(models.Model):
keyspace = 'n1'
id = columns.UUID(primary_key=True)
* Is this application included in INSTALLED_APPS list?*
Polls app was not included in the installed_apps list when I posted this question. Polls app is included in Installed_apps list now. Now I get the following error
File "C:\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django_cassandra_engine-0.6.4-py3.5.egg\django_cassandra_engine\management\commands\sync_cassandra.py
", line 80, in handle_noargs
self.import_management()
File "C:\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django_cassandra_engine-0.6.4-py3.5.egg\django_cassandra_engine\management\commands\sync_cassandra.py
", line 34, in import_management
import_module('.management', app_name)
File "C:\AppData\Local\Programs\Python\Python35-32\lib\importlib__init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 981, in _gcd_import
File "", line 931, in _sanity_check
SystemError: Parent module 'polls.apps.PollsConfig' not loaded, cannot perform relative import
from django-cassandra-engine.
There's clearly something wrong with your app's configuration. I would start with fixing this
SystemError: Parent module 'polls.apps.PollsConfig' not loaded, cannot perform relative import
.
from django-cassandra-engine.
Related Issues (20)
- Can't delete from admin - You cannot .filter() on a DjangoCassandraQuerySet which has been ordered using python HOT 1
- Support for values_list 'named' keyword argument
- Django 3.0 support HOT 4
- admin ui HOT 1
- TypeError: sql_flush() got an unexpected keyword argument 'reset_sequences' HOT 2
- Date must be mapped to DateField in serializers
- Creating keyspace but models are not syncing HOT 2
- Multiple cassandra configurations HOT 5
- Stale Cached Response on GET HOT 2
- Can I use Scylla's scylla-driver with this? HOT 1
- built-in ORM HOT 3
- Error while connecting to AWS Keyspace HOT 2
- django cassnadra migration HOT 1
- Does this library support connecting through TLS (if possible, with client cert auth)?
- Discord server HOT 1
- Can't connect to K8ssandra in minikube, problem with settings HOT 1
- django 3.2 LTS support & Python 3.7+ only
- Looking for a way to dump any CQL statement to logging
- cassandra.cluster.NoHostAvailable
- sync_cassandra command fails after syncing 1 model HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-cassandra-engine.