Skip to content

Instantly share code, notes, and snippets.

@fchevitarese
Created September 23, 2015 12:35
Show Gist options
  • Save fchevitarese/db207c862941abb007d6 to your computer and use it in GitHub Desktop.
Save fchevitarese/db207c862941abb007d6 to your computer and use it in GitHub Desktop.
comando.py
from django.core.management.base import BaseCommand
from billing.tasks import check_balance_and_warn
class Command(BaseCommand):
help = "Check client's balance and send warnings to them"
def handle(self, *args, **options):
check_balance_and_warn()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment