dispatch/templatetags/dispatch_tags.py
def zone(zone_id, **kwargs):
    """Renders the contents of the zone with given zone_id."""

    try:
        zone = ThemeManager.Zones.get(zone_id)
    except ZoneNotFound:
        return ''

    try:
        return zone.widget.render(add_context=kwargs)
    except (WidgetNotFound, AttributeError):
        pass

    return ''
def zone(zone_id, **kwargs):
    """Renders the contents of the zone with given zone_id."""

    try:
        zone = ThemeManager.Zones.get(zone_id)
    except ZoneNotFound:
        return ''

    try:
        return zone.widget.render(add_context=kwargs)
    except (WidgetNotFound, AttributeError):
        pass

    return ''
Renders the contents of the zone with given zone_id.