added django logging functionality, closes #243