综合主题失败 - AttributeError:命名空间'__anon_0x7f3dc61e5950'没有成员'stanford_theme_enabled'

时间:2016-09-12 09:41:24

标签: django bitnami openedx

我是OpenEdx的新手,我使用Bitnami堆栈设置了我的系统。但我似乎无法设置自定义综合主题。 LMS抛出内部服务器错误。我的服务器日志下面有

这是我到目前为止所做的。

  1. 从 - https://themex.io/下载主题
  2. 设置COMPREHENSIVE_THEME_DIR =“/ path-to-theme”
  3. Ran SERVICE_VARIANT = lms ./bin/paver.edxapp update_assets lms --settings = aws并成功完成
  4. 启动LMS,500内部服务器错误
  5. 我做错了什么?

    [Mon Sep 12 05:10:14.551555 2016] [:error] [pid 31981] [remote 127.0.0.1:512]     runtime._include_file(context, (static.get_themed_template_path(relative_path='theme-header.html', default_path='navigation.html')), _template_uri)
    [Mon Sep 12 05:10:14.551570 2016] [:error] [pid 31981] [remote 127.0.0.1:512]   File "/home/harrypalace/manjaro_vlp/apps/edx/edx-platform/venv/lib/python2.7/site-packages/mako/runtime.py", line 752, in _include_file
    [Mon Sep 12 05:10:14.551592 2016] [:error] [pid 31981] [remote 127.0.0.1:512]     callable_(ctx, **_kwargs_for_include(callable_, context._data, **kwargs))
    [Mon Sep 12 05:10:14.551607 2016] [:error] [pid 31981] [remote 127.0.0.1:512]   File "/home/harrypalace/manjaro_vlp/.tmp/mako_lms/a2ab4a911ea1f0731584a3dbc36a191f/navigation.html.py", line 48, in render_body
    [Mon Sep 12 05:10:14.551630 2016] [:error] [pid 31981] [remote 127.0.0.1:512]     _mako_get_namespace(context, '__anon_0x7f3dc61e5950')._populate(_import_ns, [u'login_query', u'stanford_theme_enabled'])
    [Mon Sep 12 05:10:14.551645 2016] [:error] [pid 31981] [remote 127.0.0.1:512]   File "/home/harrypalace/manjaro_vlp/apps/edx/edx-platform/venv/lib/python2.7/site-packages/mako/runtime.py", line 525, in _populate
    [Mon Sep 12 05:10:14.551667 2016] [:error] [pid 31981] [remote 127.0.0.1:512]     d[ident] = getattr(self, ident)
    [Mon Sep 12 05:10:14.551688 2016] [:error] [pid 31981] [remote 127.0.0.1:512]   File "/home/harrypalace/manjaro_vlp/apps/edx/edx-platform/venv/lib/python2.7/site-packages/mako/runtime.py", line 625, in __getattr__
    [Mon Sep 12 05:10:14.551711 2016] [:error] [pid 31981] [remote 127.0.0.1:512]     (self.name, key))
    [Mon Sep 12 05:10:14.551736 2016] [:error] [pid 31981] [remote 127.0.0.1:512] AttributeError: Namespace '__anon_0x7f3dc61e5950' has no member 'stanford_theme_enabled'
    

1 个答案:

答案 0 :(得分:-1)

您应该查看以下指南:

How to Install a Custom Theme

它描述了在Bitnami OpenEDX上安装自定义它们的过程。