Skip to content

Instantly share code, notes, and snippets.

@guillaumepiot
Created April 12, 2013 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guillaumepiot/5370794 to your computer and use it in GitHub Desktop.
Save guillaumepiot/5370794 to your computer and use it in GitHub Desktop.
DJANGO - Default command
from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
args = '<arg1 arg2 ...>'
help = 'Command to do ...'
def handle(self, *args, **options):
self.stdout.write('Job complete')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment