About Immediate Output from Django Management Commands

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

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

Alternatively you can use:

print("Some output", flush=True)

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