2017-08-25 28 views
0

我試圖用django使用指令here設置cassandra。Django with cassandra - 沒有cassandra數據庫的模式

一切工作正常。當我遷移時,表格被創建。但是,當我運行使用python manage.py runserver服務器,它給了我下面的錯誤:

System check identified no issues (0 silenced). 
Unhandled exception in thread started by Traceback (most recent call last): 
File "/Users/gpallav/Env/tp/lib/python2.7/site-packages/django/utils/autoreload.py", 
line 228, in wrapper fn(*args, **kwargs) 
File "/Users/gpallav/Env/tp/lib/python2.7/site-packages/django/core/management/commands/runserver.py", 
line 128, in inner_run self.check_migrations() 
File "/Users/gpallav/Env/tp/lib/python2.7/site-packages/django/core/management/base.py", 
line 422, in check_migrations executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS]) 
File "/Users/gpallav/Env/tp/lib/python2.7/site-packages/django/db/migrations/executor.py", 
line 20, in init self.loader = MigrationLoader(self.connection) 
File "/Users/gpallav/Env/tp/lib/python2.7/site-packages/django/db/migrations/loader.py", 
line 52, in init self.build_graph() 
File "/Users/gpallav/Env/tp/lib/python2.7/site-packages/django/db/migrations/loader.py", 
line 209, in build_graph self.applied_migrations = recorder.applied_migrations() 
File "/Users/gpallav/Env/tp/lib/python2.7/site-packages/django/db/migrations/recorder.py", 
line 65, in applied_migrations self.ensure_schema() 
File "/Users/gpallav/Env/tp/lib/python2.7/site-packages/django/db/migrations/recorder.py", 
line 57, in ensure_schema editor.create_model(self.Migration) 
File "/Users/gpallav/Env/tp/lib/python2.7/site-packages/django_cassandra_engine/base/schema.py", 
line 23, in create_model raise Exception('No schema for cassandra database') 

plz幫助!

+0

你運行在回地面'卡桑德拉-f'? 你讀過[use-cassandra-on-django](https://www.slothparadise.com/how-to-install-and-use-cassandra-on-django/) –

+0

@BearBrown是的,cassandra正在運行在背景中。是的,我已閱讀並遵循此鏈接。 – p0712

回答

0

這是django-cassandra-engine(1.2.1)的一個bug。

現在它在django-cassandra-engine(1.2.2)中得到了修復。

你可以升級你的Django卡桑德拉引擎:

pip install --upgrage django-cassandra-engine