-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
From now on, the theme will be automatically set when no other theme is already enabled. See overhangio/tutor#953
- Loading branch information
1 parent
9c4d56d
commit ea08b58
Showing
9 changed files
with
64 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "16.0.0" | ||
__version__ = "17.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Assign themes only if no other theme exists yet | ||
./manage.py lms shell -c " | ||
import sys | ||
from django.contrib.sites.models import Site | ||
def assign_theme(domain): | ||
site, _ = Site.objects.get_or_create(domain=domain) | ||
if not site.themes.exists(): | ||
site.themes.create(theme_dir_name='indigo') | ||
assign_theme('{{ LMS_HOST }}') | ||
assign_theme('{{ LMS_HOST }}') | ||
assign_theme('{{ LMS_HOST }}:8000') | ||
assign_theme('{{ CMS_HOST }}') | ||
assign_theme('{{ CMS_HOST }}:8001') | ||
assign_theme('{{ PREVIEW_LMS_HOST }}') | ||
assign_theme('{{ PREVIEW_LMS_HOST }}:8000') | ||
" |