Hi Régis,
I am getting error while setting the theme I am running Tutor Version 13.2.2 on ubuntu20.04 and System Config 4 CPU Core 8 GB Ram. It is setting the theme but not working i have tried 2 themes Indigo and Paragon.
Please help me out @regisb
tutor local settheme indigo
docker-compose -f /home/manoj/.local/share/tutor/env/local/docker-compose.yml -f /home/manoj/.local/share/tutor/env/local/docker-compose.prod.yml -f /home/manoj/.local/share/tutor/env/local/docker-compose.tmp.yml --project-name tutor_local -f /home/manoj/.local/share/tutor/env/local/docker-compose.jobs.yml -f /home/manoj/.local/share/tutor/env/local/docker-compose.jobs.tmp.yml run --rm lms-job sh -e -c
echo "Loading settings $DJANGO_SETTINGS_MODULE"
./manage.py lms shell -c "from django.contrib.sites.models import Site
print('Assigning theme indigo to xxxx.in...')
site, _ = Site.objects.get_or_create(domain='xxxx.in')
if not site.name:
site.name = 'xxxx.in'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')
print('Assigning theme indigo to xxxx.in:8000...')
site, _ = Site.objects.get_or_create(domain='xxxx.in:8000')
if not site.name:
site.name = 'xxxx.in:8000'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')
print('Assigning theme indigo to studio.xxxx.in...')
site, _ = Site.objects.get_or_create(domain='studio.xxxx.in')
if not site.name:
site.name = 'studio.xxxx.in'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')
print('Assigning theme indigo to studio.xxxx.in:8001...')
site, _ = Site.objects.get_or_create(domain='studio.xxxx.in:8001')
if not site.name:
site.name = 'studio.xxxx.in:8001'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')
print('Assigning theme indigo to preview.xxxx.in...')
site, _ = Site.objects.get_or_create(domain='preview.xxxx.in')
if not site.name:
site.name = 'preview.xxxx.in'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')
print('Assigning theme indigo to preview.xxxx.in:8000...')
site, _ = Site.objects.get_or_create(domain='preview.xxxx.in:8000')
if not site.name:
site.name = 'preview.xxxx.in:8000'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')
"
Starting tutor_local_mysql_1 ... done
Loading settings lms.envs.tutor.production
2022-05-28 14:18:24,450 WARNING 7 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/boto/plugin.py:40: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
2022-05-28 14:18:24,534 WARNING 7 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/botocore/vendored/requests/packages/urllib3/_collections.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
from collections import Mapping, MutableMapping
2022-05-28 14:18:26,886 WARNING 7 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/edx-platform/openedx/core/types/admin.py:49: DeprecationWarning: Django 3.2+ available: the _admin_display method and the AdminMethodclass should be removed from openedx.core.types
warnings.warn(
Assigning theme indigo to xxxx.in...
Assigning theme indigo to xxxx.in:8000...
Assigning theme indigo to studio.xxxx.in...
Assigning theme indigo to studio.xxxx.in:8001...
Assigning theme indigo to preview.xxxx.in...
Assigning theme indigo to preview.xxxx.in:8000...
manoj@localhost:~$ tutor local settheme indigo
docker-compose -f /home/manoj/.local/share/tutor/env/local/docker-compose.yml -f /home/manoj/.local/share/tutor/env/local/docker-compose.prod.yml -f /home/manoj/.local/share/tutor/env/local/docker-compose.tmp.yml --project-name tutor_local -f /home/manoj/.local/share/tutor/env/local/docker-compose.jobs.yml -f /home/manoj/.local/share/tutor/env/local/docker-compose.jobs.tmp.yml run --rm lms-job sh -e -c
echo "Loading settings $DJANGO_SETTINGS_MODULE"
./manage.py lms shell -c "from django.contrib.sites.models import Site
print('Assigning theme indigo to xxxx.in...')
site, _ = Site.objects.get_or_create(domain='xxxx.in')
if not site.name:
site.name = 'xxxx.in'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')
print('Assigning theme indigo to xxxx.in:8000...')
site, _ = Site.objects.get_or_create(domain='xxxx.in:8000')
if not site.name:
site.name = 'xxxx.in:8000'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')
print('Assigning theme indigo to studio.xxxx.in...')
site, _ = Site.objects.get_or_create(domain='studio.xxxx.in')
if not site.name:
site.name = 'studio.xxxx.in'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')
print('Assigning theme indigo to studio.xxxx.in:8001...')
site, _ = Site.objects.get_or_create(domain='studio.xxxx.in:8001')
if not site.name:
site.name = 'studio.xxxx.in:8001'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')
print('Assigning theme indigo to preview.xxxx.in...')
site, _ = Site.objects.get_or_create(domain='preview.xxx.in')
if not site.name:
site.name = 'preview.xxxx.in'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')
print('Assigning theme indigo to preview.xxxx.in:8000...')
site, _ = Site.objects.get_or_create(domain='preview.xxxx.in:8000')
if not site.name:
site.name = 'preview.xxxx.in:8000'
site.save()
site.themes.all().delete()
site.themes.create(theme_dir_name='indigo')
"
Starting tutor_local_mysql_1 ... done
Loading settings lms.envs.tutor.production
2022-05-28 14:19:54,193 WARNING 7 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/boto/plugin.py:40: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
2022-05-28 14:19:54,279 WARNING 7 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/botocore/vendored/requests/packages/urllib3/_collections.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
from collections import Mapping, MutableMapping
2022-05-28 14:19:56,507 WARNING 7 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/edx-platform/openedx/core/types/admin.py:49: DeprecationWarning: Django 3.2+ available: the _admin_display method and the AdminMethodclass should be removed from openedx.core.types
warnings.warn(
Assigning theme indigo to xxxx.in...
Assigning theme indigo to xxx.in:8000...
Assigning theme indigo to studio.xxxx.in...
Assigning theme indigo to studio.xxx.in:8001...
Assigning theme indigo to preview.xxx.in...
Assigning theme indigo to preview.xxx.in:8000...
manoj@localhost:~$ $(tutor config printvalue LMS_HOST)
xxxx.in: command not found
Please help me