1👍
✅
Don’t call fileConfig
in your views: do this in settings.py
, as recommended in my answer to another question. Your view code should only contain the code to define the logger (as you already have it) as well as the logging calls themselves. Post your findings once you’ve made this change.
Also, don’t post comments to your own questions. You should be able to edit your question to e.g. add the logging config file, and be able to format it better than you can in a comment.
Source:stackexchange.com