def allow_ajax(request):
if request.META.get('<STR_LIT>', None) not in settings.INTERNAL_IPS:<EOL><INDENT>return False<EOL><DEDENT>if toolbar_version < LooseVersion('<STR_LIT>')and request.get_full_path().startswith(DEBUG_TOOLBAR_URL_PREFIX)and request.GET.get('<STR_LIT>', None) != '<STR_LIT>':<EOL><INDENT>return False<EOL><DEDENT>return bool(settings.DEBUG)<EOL>
Default function to determine whether to show the toolbar on a given page.