Where do print statements write to when using django + nginx + flup? Where do print statements write to when using django + nginx + flup? django django

Where do print statements write to when using django + nginx + flup?


I agree with the logging recommendation, but these days the link should point to the integrated Django functionality, not just to the base Python libs.

https://docs.djangoproject.com/en/dev/topics/logging/

With a basic setup and something simple like the following at the top of your Python code:

import logginglog = logging.getLogger(__name__)

You can then do stuff like this in your code:

log.debug('output message')

which will land where you Django logging settings are pointed.