python manage.py migrate 执行后,主要表现最后一行的ModuleNotFoundError,但是我的Django版本是2.0以上,我又更改whoosh_cn_backend为whoosh_backend时运行,同样失败。求解,不懂。。。
(venv) D:\Django源码\blog>python manage.py migrate
Operations to perform:
Apply all migrations: admin, auth, contenttypes, sessions, storm, user
Running migrations:
Applying contenttypes.0002_remove_content_type_name...Traceback (most recent call last):
File "manage.py", line 22, in
execute_from_command_line(sys.argv)
File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\django\core\management\__init__.py", line 381, in execute_from_comma
nd_line
utility.execute()
File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\django\core\management\__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\django\core\management\base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\django\core\management\base.py", line 364, in execute
output = self.handle(*args, **options)
File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\django\core\management\base.py", line 83, in wrapped
res = handle_func(*args, **kwargs)
File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\django\core\management\commands\migrate.py", line 234, in handle
fake_initial=fake_initial,
File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\django\db\migrations\executor.py", line 117, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\django\db\migrations\executor.py", line 147, in _migrate_all_forward
s
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\django\db\migrations\executor.py", line 246, in apply_migration
self.record_migration(migration)
File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\django\db\migrations\executor.py", line 261, in record_migration
self.recorder.record_applied(migration.app_label, migration.name)
File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\django\db\migrations\recorder.py", line 83, in record_applied
self.migration_qs.create(app=app, name=name)
File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\django\db\models\query.py", line 422, in create
obj.save(force_insert=True, using=self.db)
File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\django\db\models\base.py", line 741, in save
force_update=force_update, update_fields=update_fields)
File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\django\db\models\base.py", line 790, in save_base
update_fields=update_fields, raw=raw, using=using,
File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\django\dispatch\dispatcher.py", line 175, in send
for receiver in self._live_receivers(sender)
File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\django\dispatch\dispatcher.py", line 175, in
for receiver in self._live_receivers(sender)
File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\haystack\signals.py", line 51, in handle_save
index = self.connections[using].get_unified_index().get_index(sender)
File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\haystack\utils\loading.py", line 109, in __getitem__
self.thread_local.connections[key] = load_backend(self.connections_info[key]['ENGINE'])(using=key)
File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\haystack\utils\loading.py", line 60, in load_backend
return import_class(full_backend_path)
File "C:\Users\Administrator\PycharmProjects\untitled\venv\lib\site-packages\haystack\utils\loading.py", line 27, in import_class
module_itself = importlib.import_module(module_path)
File "D:\Python37\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "
File "
File "
ModuleNotFoundError: No module named 'storm.whoosh_cn_backend'