#NEWLINE# def autodiscover( self ) : #NEWLINE# #INDENT# '\n        Autodiscovers all admin2.py modules for apps in INSTALLED_APPS by\n        trying to import them.\n        ' #NEWLINE# for app_name in [ x for x in settings . INSTALLED_APPS ] : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# import_module ( ( '%s.admin2' % self ) ) #NEWLINE# #UNINDENT# except ImportError as e : #NEWLINE# #INDENT# if ( str ( e ) . startswith ( 'No module named' ) and ( 'admin2' in str ( e ) ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# raise e