def _purge(request): "Debug view for purging all documents from the snippets search index" # TODO: remove i = Index(name="snippets") i.purge() return HttpResponse("Done")