Open Edx update logo

狂风中的少年 提交于 2019-12-07 13:00:41

问题


I am trying to change logo image on my Edx site. I go to folder /edx/app/edxapp/edx-platform/lms/static/images/default-theme and upload new logo image, but when I update website, my logo is not updated

also I restarted lms and cms, but it doesnt help to solve a problem


回答1:


Dmitri you are using the wrong path, to change logo :

  1. Go to the /edx/var/edxapp/staticfiles/images/
  2. Replace the image header-logo.png with new logo image. Note : filename and file extension should stay header-logo and png, respectively?
  3. Restart the LMS.

Thanks.




回答2:


It looks like you should run 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



回答3:


Please don't hard code logo.

I would recommend using the theme for a logo change.

We can compile the code.

sudo -H -u edxapp bash

source /edx/app/edxapp/edxapp_env

cd /edx/app/edxapp/edx-platform

paver update_assets cms --settings=production

paver update_assets lms --settings=production

sudo /edx/bin/supervisorctl status all



来源:https://stackoverflow.com/questions/32900783/open-edx-update-logo

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!