2

我正在使用此说明安装 edX 平台(http://nkokkos.wordpress.com/2013/10/09/setting-up-edx-platform-on-ubutnu/),我跟着;每一步都成功,但是./manage.py lms syncdb –migrate,我面临这个错误:

Traceback (most recent call last):
  File "manage.py", line 90, in <module>
    startup = importlib.import_module(edx_args.startup)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/home/peyman/dev/edx/lms/startup.py", line 9, in <module>
    settings.INSTALLED_APPS  # pylint: disable=W0104
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 53, in __getattr__
    self._setup(name)
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 48, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 134, in __init__
    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings 'lms.envs.dev' (Is it on sys.path?): No module named xblock.fields

我该如何解决?

4

2 回答 2

0

我在您的 edx-platform 文件夹结构中相应地检查了代码,查找 lms\envs\ 存在许多用于迁移的环境文件

于 2020-07-10T22:10:54.923 回答
0

对于任何因 Open edX 安装问题而登陆这里的人,请尝试使用此最新指南,而不是上面链接的指南:http: //edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/

于 2017-03-28T10:44:48.957 回答