[Answer]-Django: Is process started from console or from a HTTPRequest?

1👍

Well, there is no a good way to do. But here is what we do when we need distinguish manage.py jenkins from regular http requests:

Add to settings.py

import sys
JENKINS = "jenkins" in sys.argv

Then you can use that variable whenever you need. In the log filter as well.

Leave a comment