Created
February 12, 2012 21:33
-
-
Save albertsun/1810948 to your computer and use it in GitHub Desktop.
management command
This file contains hidden or 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, CommandError | |
from django.core import management | |
class Command(NoArgsCommand): | |
help="Run a command" | |
def get_version(self): | |
return "0.1" | |
def handle_noargs(self, **options): | |
print "Running a command" | |
"""do some stuff here""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment