I was looking to accomplish a simple task – print debug messages in a Django View that would tell me what’s going on. Came across the following in a post:
You can configure it in your `settings.py`:
level = logging.DEBUG,
format = ''%(asctime)s %(levelname)s %(message)s'',
Then call it from any of your views:
logging.debug("A log message")
He then goes on to explain more advanced use cases using the Python Debugger, but this much was enough for what I was looking to do with it.