示例#1
0
文件: views.py 项目: sleepyjames/ppb
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")