I'm trying to pass the arguments in the console command. I'm using django framework. I'm trying something like the below command. for example.
Debug configuration in django framework:
python manage.py command_name args
I'm trying to pass the arguments in the console command. I'm using django framework. I'm trying something like the below command. for example.
Debug configuration in django framework:
python manage.py command_name args
you can try to use sys
library, something like that:
import sys
print "This is the name of the script: ", sys.argv[0]
print "Number of arguments: ", len(sys.argv)
print "The arguments are: " , str(sys.argv)