How to Check the Running Django Command

How to Check the Running Django Command

Articles

It’s occasionally useful to be able to tell which Django manage.py command is being run, in a code path that otherwise has no way of telling.