edx中的操作问题

1.修改vagrantfile文件后需要重启虚拟机

    (1)修改config.vm.network :public_network, ip: "192.168.1.21"(局域网共享)
                        config.vm.network :private_network, ip: "192.168.33.10"(虚拟机ip)

2. 问题:主观题总分得不到

problem_weight = vertical.weight

  原因:未安装xblock插件 

  解决方法:

       (1)在cms.env.json中添加

"ALLOW_ALL_ADVANCED_COMPONENTS": True

       (2)安装xblock(插件)

             edxapp@precise64:~/edx-platform/components/xblock-subjective$ source /edx/app/edxapp/venvs/edxapp       /bin/activate
            (edxapp)edxapp@precise64:~/edx-platform/components/xblock-subjective$ ls
            build  dist  requirements.txt  setup.py  static  subjective.py    xblock_subjective.egg-info
            (edxapp)edxapp@precise64:~/edx-platform/components/xblock-subjective$ python setup.py install

                    

你可能感兴趣的:(edx中的操作问题)