#NEWLINE# def app_in_list( self , app_label , apps_list ) : #NEWLINE# #INDENT# "\n        Is 'app_label' present in 'apps_list'?\n\n        apps_list is either settings.SHARED_APPS or settings.TENANT_APPS, a\n        list of app names.\n\n        We check the presense of the app's name or the full path to the apps's\n        AppConfig class.\n        https://docs.djangoproject.com/en/1.8/ref/applications/#configuring-applications\n        " #NEWLINE# appconfig = django_apps . get_app_config ( app_label ) #NEWLINE# appconfig_full_name = '{}.{}' . format ( appconfig . __module__ , appconfig . __class__ . __name__ ) #NEWLINE# return ( ( appconfig . name in apps_list ) or ( appconfig_full_name in apps_list ) )