no message

This commit is contained in:
2018-04-01 15:16:14 +02:00
parent a86327b073
commit 19b3923533
3 changed files with 10 additions and 0 deletions

View File

View File

@@ -0,0 +1,10 @@
from django.core.management.base import BaseCommand
import os
class Command(BaseCommand):
def handle(self, *args, **options):
directory = './whoosh/index/'
if not os.path.exists(directory):
os.makedirs(directory)