alcatel/document/management/commands/clearcache.py
author Nicolas Sauret <nicolas.sauret@iri.centrepompidou.fr>
Fri, 18 Apr 2014 14:31:58 +0200
changeset 51 79833eaa394a
parent 27 8ca7f2cea729
permissions -rw-r--r--
set up second level for navigation

'''
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')