Django logging v3

Move log config to settings files so it can be changed by users without them having to modify the code, so that users can avoid issue #448.

Also avoid error messages when optional logging is turned off (fix #175).