blob: 09d1bbc8d34e3b963df703601491f26882844249 [file] [log] [blame]
Scott Bakerc7325a42014-05-30 16:06:46 -07001from view_common import *
2
3class DashboardAnalyticsAjaxView(View):
4 def get(self, request, name="hello_world", **kwargs):
Scott Baker4879fca2014-05-30 16:10:35 -07005 if (name == "bigquery"):
Scott Bakerc7325a42014-05-30 16:06:46 -07006 (mimetype, data) = DoPlanetStackAnalytics(request)
7 return HttpResponse(data, mimetype=mimetype)
8 else:
9 return HttpResponse(json.dumps("Unknown"), mimetype='application/javascript')