Esempio n. 1
0
def cron_cleanup():
    from django.core.management.commands import cleanup

    cmd = cleanup.Command()
    cmd.handle()
Esempio n. 2
0
 def handle_noargs(self, **options):
     self.cleanup()
     cleanup.Command().execute(**options)