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