def __init__(self, view_name: str, *args: Any, **kwargs: Any) -> None:
    if is_dev_mode():
        logging.basicConfig(level=logging.DEBUG)
    logger = logging.getLogger(__name__)
    self.view_name = view_name
    if (self.view_name not in ('ActionView', 'PresenterView')):
        raise ValueError(f'View name has to be ActionView or PresenterView, not {self.view_name}.')
    logger.debug(f'Create gunicorn application for {self.view_name}.')
    super().__init__(*args, **kwargs)
def __init__(self, view_name: str, *args: Any, **kwargs: Any) -> None:
    if is_dev_mode():
        logging.basicConfig(level=logging.DEBUG)
    logger = logging.getLogger(__name__)
    self.view_name = view_name
    if (self.view_name not in ('ActionView', 'PresenterView')):
        raise ValueError(f'View name has to be ActionView or PresenterView, not {self.view_name}.')
    logger.debug(f'Create gunicorn application for {self.view_name}.')
    super().__init__(*args, **kwargs)