Fix "MissingSchema: Invalid URL" error on org creation
See: https://discuss.overhang.io/t/issues-with-creating-organizations-in-discovery/1273 This was due to the fact that partners did not have an associated organizations API url.
This commit is contained in:
parent
81d41c492a
commit
a36718277e
@ -1 +1 @@
|
||||
__version__ = "11.0.1"
|
||||
__version__ = "11.0.2"
|
||||
|
||||
@ -6,15 +6,17 @@ make migrate
|
||||
--site-domain {{ DISCOVERY_HOST }}:8381 \
|
||||
--code dev --name "Open edX - development" \
|
||||
--lms-url="http://lms:8000" \
|
||||
--courses-api-url "http://{{ LMS_HOST }}:8000/api/courses/v1/"
|
||||
|
||||
--courses-api-url "http://{{ LMS_HOST }}:8000/api/courses/v1/" \
|
||||
--organizations-api-url "http://{{ LMS_HOST }}:8000/api/organizations/v1/"
|
||||
|
||||
# Production partner
|
||||
./manage.py create_or_update_partner \
|
||||
--site-id 2 \
|
||||
--site-domain {{ DISCOVERY_HOST }} \
|
||||
--code openedx --name "Open edX" \
|
||||
--lms-url="http://lms:8000" \
|
||||
--courses-api-url "{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}/api/courses/v1/"
|
||||
--courses-api-url "{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}/api/courses/v1/" \
|
||||
--organizations-api-url "{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}/api/organizations/v1/"
|
||||
|
||||
./manage.py refresh_course_metadata --partner_code=openedx
|
||||
./manage.py update_index --disable-change-limit
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user