diff --git a/CHANGELOG.md b/CHANGELOG.md index 46abd73..7544ff3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,13 @@ instructions, because git commits are used to generate release notes: + +## v16.0.2 (2023-12-09) + +- [Improvement] Added Typing to code, Makefile and test action to the repository and formatted code with Black and isort. (by @CodeWithEmad) +- [Improvement] Introduced Course Discovery Repository and Version settings. (by @Faraz32123) +- [BugFix] Fix base url for discovery media files, including program banner images. (by @Faraz32123) + ## v16.0.1 (2023-11-08) diff --git a/changelog.d/20231005_153602_codewithemad.md b/changelog.d/20231005_153602_codewithemad.md deleted file mode 100644 index 952a383..0000000 --- a/changelog.d/20231005_153602_codewithemad.md +++ /dev/null @@ -1 +0,0 @@ -- [Improvement] Added Typing to code, Makefile and test action to the repository and formatted code with Black and isort. (by @CodeWithEmad) \ No newline at end of file diff --git a/changelog.d/20231113_125255_faraz.maqsood_introduce_course_discovery_repository_settings.md b/changelog.d/20231113_125255_faraz.maqsood_introduce_course_discovery_repository_settings.md deleted file mode 100644 index 63cc321..0000000 --- a/changelog.d/20231113_125255_faraz.maqsood_introduce_course_discovery_repository_settings.md +++ /dev/null @@ -1 +0,0 @@ -- [Improvement] Introduced Course Discovery Repository and Version settings. (by @Faraz32123) \ No newline at end of file diff --git a/tutordiscovery/__about__.py b/tutordiscovery/__about__.py index 610c111..eabf3d3 100644 --- a/tutordiscovery/__about__.py +++ b/tutordiscovery/__about__.py @@ -1 +1 @@ -__version__ = "16.0.1" +__version__ = "16.0.2" diff --git a/tutordiscovery/templates/discovery/apps/settings/tutor/development.py b/tutordiscovery/templates/discovery/apps/settings/tutor/development.py index 9de215e..9ec0bf9 100644 --- a/tutordiscovery/templates/discovery/apps/settings/tutor/development.py +++ b/tutordiscovery/templates/discovery/apps/settings/tutor/development.py @@ -16,4 +16,7 @@ # Disable API caching, which makes it a pain to troubleshoot issues USE_API_CACHING = False +DISCOVERY_BASE_URL = "http://{{ DISCOVERY_HOST }}:8381" +MEDIA_URL = DISCOVERY_BASE_URL + "/media/" + {{ patch("discovery-development-settings") }} diff --git a/tutordiscovery/templates/discovery/apps/settings/tutor/production.py b/tutordiscovery/templates/discovery/apps/settings/tutor/production.py index a3b0859..f0843af 100644 --- a/tutordiscovery/templates/discovery/apps/settings/tutor/production.py +++ b/tutordiscovery/templates/discovery/apps/settings/tutor/production.py @@ -15,4 +15,7 @@ SOCIAL_AUTH_REDIRECT_IS_HTTPS = {% if ENABLE_HTTPS %}True{% else %}False{% endif %} +DISCOVERY_BASE_URL = "{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ DISCOVERY_HOST }}" +MEDIA_URL = DISCOVERY_BASE_URL + "/media/" + {{ patch("discovery-production-settings") }}