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帮助!
你运行在回地面'卡桑德拉-f'? 你读过[use-cassandra-on-django](https://www.slothparadise.com/how-to-install-and-use-cassandra-on-django/) –
@BearBrown是的,cassandra正在运行在背景中。是的,我已阅读并遵循此链接。 – p0712