def build_views(self):
        """
        Bake out specified buildable views.
        """
        # Then loop through and run them all
        for view_str in self.view_list:
            logger.debug("Building %s" % view_str)
            if self.verbosity > 1:
                six.print_("Building %s" % view_str)
            try:
                view = get_callable(view_str)
                view().build_method()
            except (TypeError, ViewDoesNotExist, ImportError):
                raise CommandError("View %s does not work." % view_str)
dataset/ETHPy150Open datadesk/django-bakery/bakery/management/commands/build.py/Command.build_views/original