def is_development_mode(registry):
    """
    Returns true, if mode is set to development in current ini file.

    :param registry: request.registry
    :return: Boolean
    """
    if 'mode' in registry.settings:
        return registry.settings['mode'].lower() == 'development'
    return False