0

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

4

1 回答 1

1

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

于 2013-06-10T20:15:26.340 回答