The objective of this post is to guide to enable an exisitng theme, then active it.
EDX version: ficus devstack.
Enable a theme
Open EDX comes with few existing themes:
Firstly, we need to enable a theme first: red-theme in my case.
$ vagrant ssh
$ sudo su edxapp
$ cd ~
$ vi lms.env.json
Update following three fields:
Restart the server.
Until this step, the red-theme theme is enabled and ready to use. However, our site is still not using this theme. We need to apply the theme.
We need to apply theme to a site, this is done via /admin url.
Login http://localhost:8000/admin with an admin account. The default installation does not come with an admin account. We MUST create a new one. Please see the sesction below.
Create a new site, example: example.com
Create a new theme:
naming new theme with the name set up in lms.env.json. In my case: red-theme.
In case you want to swith to edx.org theme for example, just update the site theme via http://localhost:8000/admin/theming/sitetheme/
and it will be impacted immediately, no need to restart the server.
Create an admin user:
Run following scripts line by line:
$ vagrant ssh
$ sudo su -s /bin/bash edxapp
$ /edx/bin/python.edxapp /edx/bin/manage.edxapp lms manage_user staff3 email@example.com --staff --superuser --settings=aws
then we need to set the password
$ /edx/bin/python.edxapp ./manage.py lms --settings aws changepassword staff3
Reference link: https://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/configuration/changing_appearance/theming/enable_themes.html