How to change Logo and platform_name in edx

4,318 views
Skip to first unread message

raj singhania

unread,
Jul 28, 2014, 8:19:15 AM7/28/14
to edx-...@googlegroups.com

Hello

 I installed production version of edx successfully. Now i want to change the Logo and platform name .
 Please help me.
 i change logo in my development environment  by placing the file in the  lms/static/images folder in the edx-platform .
 and run the collectstatic command

to change the name of platform there is a variable in the common.py file platform_name  do we need to replace it with our required string ?



 but same thing is not working in production version please guide me .

Thank you
Raj

Siddhant Singh

unread,
Jul 28, 2014, 8:30:45 AM7/28/14
to edx-...@googlegroups.com
Hi Raj, after changing the variable have you tried restarting lms?

Sent from Mailbox
NIMT logo
P:+91-9555-192-192
RANKED 11TH IN INDIA IN AIMA B SCHOOL SURVEY BY BUSINESS INDIA     
facebook twitter linkedin google-plus
 SCHOOLS 
 HIGHER EDUCATION
 DISTANCE & ONLINE EDUCATION 

rajsinghaniaful .

unread,
Jul 28, 2014, 11:54:39 AM7/28/14
to edx-...@googlegroups.com
yes i have tried .but no success :(

do you have any idea ? what to do?

Yarko Tymciurak

unread,
Jul 28, 2014, 12:31:50 PM7/28/14
to edx-...@googlegroups.com
On Mon, Jul 28, 2014 at 10:54 AM, rajsinghaniaful . <nitin...@gmail.com> wrote:
yes i have tried .but no success :(

do you have any idea ? what to do?

Study the code a little, and how this works.   You can also search the groups (this has been discussed by various people in different ways, for example: https://groups.google.com/d/msg/edx-code/6t11oQumYz8/TaaxiOrvRYkJ)

The summary:  don't change this in common.py - it's overridden.   Don't change this in /edx/app/edxapp/lms.env.json except during development, to make a "quick" or "test" change.

If you search the edx/configuration repository for PLATFORM_NAME or EDXAPP_PLATFORM_NAME you will see where the defaults come from - these are used during an "update" (or in the case of devstack, during a provisioning), by ansible-playbooks.

Your approach, then, will involve either setting this in /edx/etc/server-vars.yaml (effecting an ansible "extra-vars" effect - see http://docs.ansible.com/playbooks_variables.html#passing-variables-on-the-command-line, and generally read up on ansible), or in your own playbook files in your own fork of edx/configuration.

Since server-vars.yml is created once, then used by the update command, that would probably be a reasonable place to start.

If you (appropriately) update your edx-platform after setting this, ansible will update your /edx/app/edxapp/{lms,cms}env.json files, and when you start / restart your LMS (and CMS) servers, it should get appropriately picked up.

Yarko Tymciurak

unread,
Jul 28, 2014, 1:12:52 PM7/28/14
to edx-...@googlegroups.com
On Mon, Jul 28, 2014 at 11:31 AM, Yarko Tymciurak <yar...@gmail.com> wrote:



On Mon, Jul 28, 2014 at 10:54 AM, rajsinghaniaful . <nitin...@gmail.com> wrote:
yes i have tried .but no success :(

do you have any idea ? what to do?

Study the code a little, and how this works.   You can also search the groups (this has been discussed by various people in different ways, for example: https://groups.google.com/d/msg/edx-code/6t11oQumYz8/TaaxiOrvRYkJ)

The summary:  don't change this in common.py - it's overridden.   Don't change this in /edx/app/edxapp/lms.env.json except during development, to make a "quick" or "test" change.

If you search the edx/configuration repository for PLATFORM_NAME or EDXAPP_PLATFORM_NAME you will see where the defaults come from - these are used during an "update" (or in the case of devstack, during a provisioning), by ansible-playbooks.

Your approach, then, will involve either setting this in /edx/etc/server-vars.yaml (effecting an ansible "extra-vars" effect - see http://docs.ansible.com/playbooks_variables.html#passing-variables-on-the-command-line, and generally read up on ansible), or in your own playbook files in your own fork of edx/configuration.

Since server-vars.yml is created once, then used by the update command, that would probably be a reasonable place to start.

... slight correction:   I think server-vars.yml is created when configuration is updated.

rajsinghaniaful .

unread,
Jul 29, 2014, 2:18:15 AM7/29/14
to edx-...@googlegroups.com
hello  Yarko
thanks for your response

after changing the logo in development environment i run the ./manage.py lms collectstatic which made the changes which i want .
but i run the same command and one more i found on net
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms collectstatic --settings aws
not working it is giving error mentioned below



Type 'yes' to continue, or 'no' to cancel: yes
Traceback (most recent call last):
  File "./manage.py", line 95, in <module>
    execute_from_command_line([sys.argv[0]] + django_args)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
    utility.execute()
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py", line 371, in handle
    return self.handle_noargs(**options)
  File "/edx/app/edxapp/venvs/edxapp/src/django-staticfiles/staticfiles/management/commands/collectstatic.py", line 169, in handle_noargs
    collected = self.collect()
  File "/edx/app/edxapp/venvs/edxapp/src/django-staticfiles/staticfiles/management/commands/collectstatic.py", line 119, in collect
    handler(path, prefixed_path, storage)
  File "/edx/app/edxapp/venvs/edxapp/src/django-staticfiles/staticfiles/management/commands/collectstatic.py", line 291, in copy_file
    if not self.delete_file(path, prefixed_path, source_storage):
  File "/edx/app/edxapp/venvs/edxapp/src/django-staticfiles/staticfiles/management/commands/collectstatic.py", line 254, in delete_file
    self.storage.delete(prefixed_path)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/files/storage.py", line 224, in delete
    os.remove(name)
OSError: [Errno 13] Permission denied: '/edx/var/edxapp/staticfiles/xmodule/descriptors/js/000-e13a9ecfcecb2026dce545551e09f9c9.js'

i changed the permission also but error dos not resolve.


can you please tell me the specific file or step  where i need to do change the Platform name .

Thank you

praveen pal

unread,
Jul 30, 2014, 5:06:13 AM7/30/14
to edx-...@googlegroups.com
hi raj

To change LOGO :
1: Go to the /edx/var/edxapp/staticfiles/images directory
2: eplace the image named header-logo.png with new  logo image.
Note :- Don't change the name and format of file . it should always be header-logo.png .
3: Restart the LMS.

To change the Platform name

1: open /edx/app/edxapp/edx-platform/lms/envs/common.py file
2: search for the PLATFORM_NAME = "edX"
3: Replace the edX with the appropriate name you want for example praveen
4: open app/edxapp/lms.env.json file.
5: search for the PLATFORM_NAME = "edX"
6: Replace the edX with the appropriate name you want for example praveen
7: Restart the LMS.

王贺

unread,
Aug 6, 2014, 4:50:50 AM8/6/14
to edx-...@googlegroups.com
我 觉得 这是可行的,good job ,thinks your share

在 2014年7月30日星期三UTC+8下午5时06分13秒,praveen pal写道:

Malu

unread,
Aug 30, 2015, 7:15:30 PM8/30/15
to General Open edX discussion
Hello!

How do I restart the LMS?

Thanks

frank

unread,
Aug 31, 2015, 1:08:41 AM8/31/15
to General Open edX discussion
hi Malu,
    Please refer to edx-managing fullstack for these kind of questions.

David Baumgold

unread,
Aug 31, 2015, 11:15:28 AM8/31/15
to General Open edX discussion
Also, these sorts of questions belong on the openedx-ops mailing list: https://groups.google.com/forum/#!forum/openedx-ops

B. F.N

unread,
Apr 13, 2017, 9:13:33 AM4/13/17
to General Open edX discussion
Hello everybody !
I am using open edx , I am trying to change default logo and theme , but that seem not work after restarting cms/lms service ,can you help me for résolve that probleme !
Thx
Reply all
Reply to author
Forward
0 new messages