1 from django.core.management.base import BaseCommand 2 from django.core.cache import cache 3 4 -class Command(BaseCommand): 5 - def handle(self, *args, **kwargs): 6 cache.clear() 7 print 'Cleared cache' 8