我最近更新了我的django-cms
(从 2.3.4 到 2.4),现在我不能再使用 ./manage.py (例如,使用sqlall
语句)。这是输出
(venv)felipe@:~/Projects/heroku$ ./manage.py sqlall
Executing configuration file dev.py
Executing configuration file django_cms.py
Executing configuration file common.py
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/felipe/Projects/heroku/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
utility.execute()
File "/home/felipe/Projects/heroku/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/felipe/Projects/heroku/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
self.execute(*args, **options.__dict__)
File "/home/felipe/Projects/heroku/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 231, in execute
self.validate()
File "/home/felipe/Projects/heroku/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 266, in validate
num_errors = get_validation_errors(s, app)
File "/home/felipe/Projects/heroku/venv/local/lib/python2.7/site-packages/django/core/management/validation.py", line 30, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File "/home/felipe/Projects/heroku/venv/local/lib/python2.7/site-packages/django/db/models/loading.py", line 158, in get_app_errors
self._populate()
File "/home/felipe/Projects/heroku/venv/local/lib/python2.7/site-packages/django/db/models/loading.py", line 67, in _populate
self.load_app(app_name)
File "/home/felipe/Projects/heroku/venv/local/lib/python2.7/site-packages/django/db/models/loading.py", line 88, in load_app
models = import_module('.models', app_name)
File "/home/felipe/Projects/heroku/venv/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/home/felipe/Projects/heroku/venv/local/lib/python2.7/site-packages/cms/models/__init__.py", line 7, in <module>
from moderatormodels import *
File "/home/felipe/Projects/heroku/venv/local/lib/python2.7/site-packages/cms/models/moderatormodels.py", line 9, in <module>
from cms.models.pagemodel import Page
File "/home/felipe/Projects/heroku/venv/local/lib/python2.7/site-packages/cms/models/pagemodel.py", line 23, in <module>
from menus.menu_pool import menu_pool
File "/home/felipe/Projects/heroku/venv/local/lib/python2.7/site-packages/menus/menu_pool.py", line 9, in <module>
from menus.models import CacheKey
ImportError: cannot import name CacheKey
回溯中的应用程序是django-menus
django -cms 所依赖的。不过,我已经看到 cms_tags 和其他人提出了同样的错误。有什么想法吗?