Beispiel #1
0
def tweet_hypertree_js(request):
    if not request.user.is_authenticated():
        return redirect('/admin/login/?next=%s' % request.path)

    data = visualizer.tweet_hypertree()
    data = json.dumps(data)
    context = {'data': data}
    return render(request, 'visualizations/tweet_hypertree_js.html', context)
Beispiel #2
0
def tweet_hypertree_js(request):
    data = visualizer.tweet_hypertree()
    data = json.dumps(data)
    context = {"data": data}
    return render(request, "visualizations/tweet_hypertree_js.html", context)