django-cms产生“ImportError:无法导入名称CacheKey”

时间:2013-06-10 02:42:36

标签: django heroku pip django-cms

我最近更新了我的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 relies开启。不过,我已经看到cms_tags和其他人提出了同样的错误。有什么想法?

1 个答案:

答案 0 :(得分:1)

我再次重新启动了我的virtualenv,安装所需的所有组件,一次一个,现在它可以正常工作。 magic,真的