Giter Club home page Giter Club logo

Comments (4)

vbrchn avatar vbrchn commented on July 20, 2024 2

thanks. I corrected the installed_apps to resolve the problem.

from django-cassandra-engine.

r4fek avatar r4fek commented on July 20, 2024

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.

vbrchn avatar vbrchn commented on July 20, 2024

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.

r4fek avatar r4fek commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.