I want to use this query-set to automatically delete registered users who did not activate their account : User.objects.filter(is_active=False).filter(profile__key_expires__lt=timezone.now()).delete()
, but i don't know where to put it.
Views and functions need to be called to execute, but i need this code to run continuously or at least in frequent intervals.