I have a list of strings which I would like to pass into args in my django custom command.
list = ['abc', 'def', 'ghi', etc...]
How can I do this from within a python function:
management.call_command('commandname', args, options)
I've tired passing on my list of args both:
[1] directly:
management.call_command('commandname', list)
and
[2] as a loop:
management.call_command('commandname', (abc for abc in list))
but both have failed after entering the custom command