0
私はコンソールコマンドで引数を渡そうとしています。私はdjangoフレームワークを使用しています。私は以下のコマンドのようなものを試しています。例えば。pythonのconsoleコマンドで引数を渡すには?
Djangoフレームワークでのデバッグ構成:
のpython manage.pyコマンド名の引数
This is how i configured but getting error
私はコンソールコマンドで引数を渡そうとしています。私はdjangoフレームワークを使用しています。私は以下のコマンドのようなものを試しています。例えば。pythonのconsoleコマンドで引数を渡すには?
Djangoフレームワークでのデバッグ構成:
のpython manage.pyコマンド名の引数
This is how i configured but getting error
あなたはそのような何か、sys
ライブラリを使用しようとすることができます:このリンクは
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)
することができますあなたを助けてください:[1](https://stackoverflow.com/questions/13157809/writing-a-custom-management-command-with-args-and-options-explanatio n-of-field)--- [2](https://docs.djangoproject.com/en/1.11/howto/custom-management-commands/)--- [3](https://stackoverflow.com/questions/13812418/set-run-arguments-for-python-when-using-wing-ide) – Dubois