Minor: fix for !haslocaldir(), PyLint: use existing Django settings