I have to create a django command which needs to call another django command, so I had to use call_command which seems to be cool and simple:
call_command('command_to_call', new_text='arghslkjt')
The command command_to_call is supposed to store new_text content into the database. However, it returns
.......
call_command('command_to_call', new_text='arghslkjt')
^
SyntaxError: invalid syntax
make_option('-n','--new_text',
type='string',
dest='new_text',
help='specify the new text title'),
Any ideas?
Thanks in advance