走行キpythonインタプリタに身ipythonとmanage.py シェル
-
18-09-2019 - |
質問
していまipython設置、走らせたいという、平野pythonインタプリタとしてのmanage.py しています。
うみ
python2.5 manage.py shell --plain
言エラーのテキストによると--平野に渡されたipython
でん, http://docs.djangoproject.com/en/dev/ref/django-admin/
るsuggets
django-admin.py shell --plain
を与えてください
Error: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.
うのが正しいことすることができるようになります.
と思mising。[Ubuntu Jaunty,django.VERSION=(1,2,0,'α',0)、python2.5 2.6]
解決
場合はその理由を利用したいpythonのinterpretor上iPythonので必要なものペースト、doc実験お試しいただくことが可能でタイピング
%doctest_mode
のipythonコンソールの代わりに
In [1]: %doctest_mode
*** Pasting of code with ">>>" or "..." has been enabled.
Exception reporting mode: Plain
Doctest mode is: ON
>>>
他のヒント
所属していません StackOverflow