Django Library PyGal
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789
  1. from django.core.management.base import BaseCommand
  2. from pygal.search import create_index, rebuild_index
  3. class Command(BaseCommand):
  4. def handle(self, *args, **options):
  5. ix = create_index()
  6. n = rebuild_index(ix)
  7. self.stdout.write(self.style.SUCCESS('Search index for %d items created.') % n)