Example #1
0
def showPairings(request):
    divisions = parseDivs()
    return render_to_response('base/pairings.html', {'divisions': json.dumps(divisions)},
                            context_instance=RequestContext(request))
Example #2
0
def home(request):
    divisions = parseDivs()
    return render_to_response('base/index.html', {'divisions': json.dumps(divisions)},
                            context_instance=RequestContext(request))
Example #3
0
def getTshConfig(request):
    divisions = parseDivs()
    # this is the ajax view that parses the file properly
    return HttpResponse(json.dumps(divisions), mimetype="text/javascript")