This add_course_script is just the import management command from above, right? If so, you can use `django.core.management.call_command` to execute it directly, and remove the extra level of configuration.