def autodiscover(self):
        """
        Autodiscovers all admin2.py modules for apps in INSTALLED_APPS by
        trying to import them.
        """
        for app_name in [x for x in settings.INSTALLED_APPS]:
            try:
                import_module("%s.admin2" % app_name)
            except __HOLE__ as e:
                if str(e).startswith("No module named") and 'admin2' in str(e):
                    continue
                raise e
dataset/ETHPy150Open pydanny/django-admin2/djadmin2/core.py/Admin2.autodiscover