def _get_app_module_path(module_label):
    """ Given a module label, loop over the apps specified in the INSTALLED_APPS to find the
        corresponding application module path.
    """
    app_name = module_label.rsplit('.', 1)[0]
    for app in settings.INSTALLED_APPS:
        if app.endswith('.' + app_name) or app == app_name:
            return app
    return None
def _get_app_module_path ( module_label ) : app_name = module_label . rsplit ( '.' , 1 ) [ 0 ] for app in settings . INSTALLED_APPS : if app . endswith ( '.' + app_name ) or app == app_name : return app return None
Given a module label, loop over the apps specified in the INSTALLED_APPS to find the
        corresponding application module path.