The convention for management commands is to write to self.stdout like this:  self.stdout.write('Successfully closed poll "%s"' % poll_id)