|
|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
@time: 2019-04-20 20:39
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
from blog.documents import ElapsedTimeDocument, ArticleDocumentManager
|
|
|
|
|
from blog.documents import ElapsedTimeDocument, ArticleDocumentManager, ElaspedTimeDocumentManager
|
|
|
|
|
|
|
|
|
|
from django.core.management.base import BaseCommand
|
|
|
|
|
from blog.models import Article
|
|
|
|
|
@ -23,6 +23,7 @@ class Command(BaseCommand):
|
|
|
|
|
|
|
|
|
|
def handle(self, *args, **options):
|
|
|
|
|
manager = ElapsedTimeDocument()
|
|
|
|
|
ElaspedTimeDocumentManager.delete_index()
|
|
|
|
|
manager.init()
|
|
|
|
|
manager = ArticleDocumentManager()
|
|
|
|
|
manager.delete_index()
|
|
|
|
|
|