[Django]-Django call_command no-initial-data option

4👍

looking at the source, it seems the no-initial-data option is stored in an option variable called load_initial_data

so i think you need

call_command('flush', interactive=False, load_initial_data=False)
👤second

Leave a comment