Add some logging for Django and base view class

Add the logging setting for Django which can use to log some debug
message and also add the new base view class