''' Created on 16 aout 2012 @author: gerard ''' from django.core.management.base import BaseCommand from django.core.cache import cache class Command(BaseCommand): def handle(self, *args, **kwargs): cache.clear() self.stdout.write('Cleared cache\n')