gpt4 book ai didi

openedx - cms 的打开 edx 样式不起作用

转载 作者:行者123 更新时间:2023-12-02 17:50:00 24 4
gpt4 key购买 nike

CSS 在 cms 中不起作用(打开 edx)。我尝试编译 JS 和 CSS,但没有结果。服务器重新启动对我没有帮助。这是我在日志中的错误:

[__init__.py:42] - staticfiles_storage couldn't find path css/cms-style-vendor-tinymce-content.css: The file 'css/cms-style-vendor-tinymce-content.css' could not be found with <cms.lib.django_require.staticstorage.OptimizedCachedRequireJsStorage object at 0x8c1b950>.
[__init__.py:42] - staticfiles_storage couldn't find path css/cms-style-vendor.css: The file 'css/cms-style-vendor.css' could not be found with <cms.lib.django_require.staticstorage.OptimizedCachedRequireJsStorage object at 0x8c1b950>.
[__init__.py:42] - staticfiles_storage couldn't find path css/studio-main.css: The file 'css/studio-main.css' could not be found with <cms.lib.django_require.staticstorage.OptimizedCachedRequireJsStorage object at 0x8c1b950>.
[shortcuts.py:56] - Cannot find corresponding link for name: ROOT
[shortcuts.py:56] - Cannot find corresponding link for name: TOS
[shortcuts.py:56] - Cannot find corresponding link for name: PRIVACY

================================================== =================

frank帮助我解决了我的问题

sudo -H -u edxapp bash
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
paver update_assets cms --settings=aws
paver update_assets lms --settings=aws

python manage.py cms --settings=aws collectstatic --noinput
python manage.py lms --settings=aws collectstatic --noinput

sudo /edx/bin/supervisorctl restart edxapp:
sudo /edx/bin/supervisorctl restart edxapp_worker:

最佳答案

您应该在编译静态资源后运行collectstatic。

    sudo -H -u edxapp bash

source /edx/app/edxapp/edxapp_env

cd /edx/app/edxapp/edx-platform

python manage.py cms --settings=aws collectstatic --noinput

python manage.py lms --settings=aws collectstatic --noinput

关于openedx - cms 的打开 edx 样式不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33206535/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com