ericholscher/django-kong

Incompatibility with python 2.4 in views.py

Closed this issue · 1 comments

collections.defaultdict does not exist on python 2.4

please remove the import and use

def _render_to_result_list(request, sites, template_name='kong/index.html'):
    ret_val = {}
    flot_val = {}
    for site in sites:
        results = site.latest_results()
        if not site.slug in ret_val:
            ret_val[site.slug] = []
        ret_val[site.slug].extend(results)