def import_app_sitetree_module(app):
    """Imports sitetree module from a given app."""
    module_name = settings.APP_MODULE_NAME
    module = import_module(app)
    try:
        sub_module = import_module('%s.%s' % (app, module_name))
        return sub_module
    except __HOLE__:
        if module_has_submodule(module, module_name):
            raise
        return None
dataset/ETHPy150Open idlesign/django-sitetree/sitetree/utils.py/import_app_sitetree_module