debug log django code example Example: how to log errors while debug is false in django go to the link: https://stackoverflow.com/a/37218484/13529147