About Immediate Output from Django Management Commands

To see the results of a django management command immediately, but not in chunks:

1
2
self.stdout.write("Some output\n")
self.stdout.flush()

Alternatively you can use:

1
print("Some output", flush=True)

Tips and Tricks Programming Django 4.2 Django 3.2 Django 2.2 Python 3