python 3.x - Create a Django custom command with multiple integer arguments -


i trying write django custom command, , need pass list of integers it. know basic structure of class command(basecommand):, here questions:

  1. what should in def add_arguments(self, parser): method?
  2. how retrieve values within def handle(self, *args, **options): method?
  3. how calling command in command line? call that: >> python manage.py my_command 1 2 3 4 , handle integers in handle()

thank you!


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -