def _verify_app_is_enabled(self, service, app_name):
        if app_name and app_name == 'homefx':
            return
        
        # We need to use the most general service as the app may be disabled.
        service = create_derived_service(service, app=None, owner=None)
        try:
            app = service.apps[app_name]
            if app['disabled'] == '1' or app['visible'] == '0':
                raise Http404("Application '%s' is disabled." % app_name)
        except:
            raise Http404("Application '%s' is disabled." % app_name)
dataset/ETHPy150Open splunk/splunk-webframework/server/splunkdj/middlewares.py/SplunkAppEnabledMiddleware._verify_app_is_enabled/original