replace '%s' in the string "%s.process_template_response didn't return an HttpResponse object. It returned None instead.",
raise ValueError ( "%s.process_template_response didn't return an " "HttpResponse object. It returned None instead." % ( middleware_method . __self__ . __class__ . __name__ ) )