デフォルトのシェルの代わりにshell_plusを実行するように PyCharm を設定する方法はありますか?
管理コマンドのテキストを「開始スクリプト」に入れようとしましたが、次のようになります
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
# The new Django 1.4 default manage.py wants "from django..." before
# importing settings, but we usually tinker with sys.path in
# settings_local.py, which is called from settings.py. Importing
# settings.py works but does mean some double importing. Luckily that
# module does very little work.
import settings
# appease pyflakes; don't ever do this in
# non-super-meta-namespace-trickery code
settings
from django.core.management import execute_from_command_line
execute_from_command_line("shellplus")
実際には shell_plus を実行していません。
デフォルトではなく、「開始スクリプト」が追加で発生するようです。
Shell_plus は、特にすべての Django モデル クラスを自動的にインポートします。