我是emacs和Django的新手。如何讓emacs像django的「ipython manage.py shell」一樣工作?
我發現ipython挺方便的,特別是它的TAB完成。 在ipython Django shell中,TAB完成退出方便,因爲它也包含Django設置。但是當我打開一個python文件時,例如「emacs -nw models.py」,Django相關模塊的TAB完成不再適用。
身體能幫助嗎?謝謝!
我是emacs和Django的新手。如何讓emacs像django的「ipython manage.py shell」一樣工作?
我發現ipython挺方便的,特別是它的TAB完成。 在ipython Django shell中,TAB完成退出方便,因爲它也包含Django設置。但是當我打開一個python文件時,例如「emacs -nw models.py」,Django相關模塊的TAB完成不再適用。
身體能幫助嗎?謝謝!
如果您需要自動完成,請使用rope。
儘管默認的自動complite熱鍵不同(M-/
),但它的工作非常巧妙,並提供了其他有用功能的列表。
我想你可能想試試這個: 的Emacs作爲一個Django IDE與Python-django.el
http://from-the-cloud.com/en/emacs/2013/01/28_emacs-as-a-django-ide-with-python-djangoel.html
與自動完成和絕地安裝,你可以做TAB完成一樣的IPython與Django模型和意見。
它也有一個wonderfun綁定ipdb來跟蹤一個名爲pdbtracking的bug。
你會愛上它的。謝謝
謝謝!繩子真的很有幫助!但我仍然不知道如何在「ipython manage.py shell」中包含這樣的Django設置。 – ioeric