Django: prevent logging permission errors from shell

listed in answer

Django: prevent logging permission errors from shell
0 votes, 0.00 avg. rating (0% score)

ANSWER:

I’m dealing with this issue at the moment, and my current plan is to simply check for write access to the log directory in settings.py.

If I don’t have it, then I’ll write a warning to stderr and skip the configuration of logging handlers rather than failing.

by ncoghlan from http://stackoverflow.com/questions/10380258