def parse_field_path(field_path):
    model_path, field_name = field_path.rsplit(".", 1)
    app_name, model_name = model_path.split('.models.')
    _, app_label = app_name.rsplit('.', 1)
    return (app_label, model_name.lower()), field_name
Take a path to a field like "mezzanine.pages.models.Page.feature_image"
dataset/ETHPy150Open stephenmcd/mezzanine/mezzanine/boot/__init__.py/parse_field_path