Skip to content

Instantly share code, notes, and snippets.

@dj-amadeous
Created March 3, 2016 17:44
Show Gist options
  • Save dj-amadeous/369d3e9933dd79517f64 to your computer and use it in GitHub Desktop.
Save dj-amadeous/369d3e9933dd79517f64 to your computer and use it in GitHub Desktop.
creating custom management commands
from django.core.management.base import NoArgsCommand
class Command(NoArgsCommand):
help = 'reads from csv'
requires_model_validation = False
can_import_settings = True
def handle(self, **options):
print "say hello"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment