hook main django app for logging