fix: lms.startup -> django.setup in import courses script (#60)

lms.startup has been removed as of https://github.com/openedx/edx-platform/pull/36302
Therefore, we move to the original django.setup now
This commit is contained in:
Danyal Faheem 2025-03-26 17:00:37 +05:00 committed by GitHub
parent 16d018625f
commit acd14969de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,9 +8,9 @@ import requests
# https://mysqlclient.readthedocs.io/user_guide.html#mysql-c-api-function-mapping
from MySQLdb._mysql import escape_string as sql_escape_string
import lms.startup
import django
lms.startup.run()
django.setup()
from lms.djangoapps.courseware.courses import get_course
from xmodule.modulestore.django import modulestore