def get_app_name(app_name):
    """
    Returns a app name from new app config if is
    a class or the same app name if is not a class.
    """
    type_ = locate(app_name)
    if inspect.isclass(type_):
        return type_.name
    return app_name