Created
March 3, 2016 17:44
-
-
Save dj-amadeous/369d3e9933dd79517f64 to your computer and use it in GitHub Desktop.
creating custom management commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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