LoginSignup
0
1

More than 5 years have passed since last update.

コマンドラインでPython(Django)ファイルを実行する方法?

Posted at

デバッグやスクリプトの解析につかえそうなやつ。
こんな感じでファイルが読み込めるみたい。

python manage.py shell

manage.pyに定義されているものを一通り読み込んでくれる状態で、Shellが実行する。

その後、必要なモジュールをimportコマンドで展開して、
適当な変数とかに入れてみるとかすると開発やりやすいみたいです。

実行するときは
python manage.py runserver
だから、こういう機能もあるんですね。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1