Fixed #107 and fixed #125 -- Periodic cleanup tasks

This commit is contained in:
Raphael Michel
2016-03-26 19:10:31 +01:00
parent 6e60332948
commit 1011893543
8 changed files with 59 additions and 2 deletions

View File

View File

@@ -0,0 +1,12 @@
from django.core.management import call_command
from django.core.management.base import BaseCommand
from ...signals import periodic_task
class Command(BaseCommand):
help = "Run periodic tasks"
def handle(self, *args, **options):
periodic_task.send(self)
call_command('clearsessions')