Scott Baker | c7325a4 | 2014-05-30 16:06:46 -0700 | [diff] [blame] | 1 | from view_common import * |
| 2 | |
| 3 | class DashboardAnalyticsAjaxView(View): |
| 4 | def get(self, request, name="hello_world", **kwargs): |
Scott Baker | 4879fca | 2014-05-30 16:10:35 -0700 | [diff] [blame^] | 5 | if (name == "bigquery"): |
Scott Baker | c7325a4 | 2014-05-30 16:06:46 -0700 | [diff] [blame] | 6 | (mimetype, data) = DoPlanetStackAnalytics(request) |
| 7 | return HttpResponse(data, mimetype=mimetype) |
| 8 | else: |
| 9 | return HttpResponse(json.dumps("Unknown"), mimetype='application/javascript') |