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:
parent
16d018625f
commit
acd14969de
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user