I was reading the Django logging docs and came across this line:
Logging is configured as part of the general Django setup() function. Therefore, you can be certain that loggers are always ready for use in your project code.
Which general setup()
function is being talked about here?
Does this function execute only once at startup, making it the best entry point hook to add custom code?
How is it different from the MyAppConfig
defined in apps.py
.
Its found in djangos __init__.py
, it is the first thing that is called from get_wsgi_application
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With