I am cleaning this up, to use request.is_ajax() instead of adding a querystring arg.  So if you open the API request in the browser directly, it will show the Django Debug Toolbar!