예제 #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")