forked from TagesschuleElementa/www.tagesschule-elementa.ch
no message
This commit is contained in:
0
src/project/management/__init__.py
Normal file
0
src/project/management/__init__.py
Normal file
0
src/project/management/commands/__init__.py
Normal file
0
src/project/management/commands/__init__.py
Normal file
10
src/project/management/commands/update_whoosh.py
Normal file
10
src/project/management/commands/update_whoosh.py
Normal 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)
|
||||
Reference in New Issue
Block a user