def load():
autodiscover_modules('<STR_LIT>')<EOL>if PROJECT_MODULE:<EOL><INDENT>if '<STR_LIT:.>' in PROJECT_MODULE.__name__:<EOL><INDENT>try:<EOL><INDENT>import_module('<STR_LIT>' % '<STR_LIT:.>'.join(<EOL>PROJECT_MODULE.__name__.split('<STR_LIT:.>')[<NUM_LIT:0>:-<NUM_LIT:1>]))<EOL><DEDENT>except ImportError as e:<EOL><INDENT>if '<STR_LIT>' not in str(e):<EOL><INDENT>print(e)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>for cmd, app in get_commands().items():<EOL><INDENT>try:<EOL><INDENT>load_command_class(app, cmd)<EOL><DEDENT>except django.core.exceptions.ImproperlyConfigured:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>
Load ``cron`` modules for applications listed in ``INSTALLED_APPS``.