简体   繁体   English

在django中,你可以像在rails中一样将django app加载到python解释器中吗?

[英]In django, can you load a django app into the python interpreter like in rails?

In django, can you load a django app into the python interpreter like in rails? 在django中,你可以像在rails中一样将django app加载到python解释器中吗?

ie does django have: irb 也就是django有:irb

?

你的意思是python manage.py shell

If you want to have a more powerful Python shell to use with Django, you can look at IPython . 如果你想拥有一个更强大的Python shell来与Django一起使用,你可以看一下IPython Just install it and the python manage.py shell will use ipython instead of the default one. 只需安装它, python manage.py shell将使用ipython而不是默认的。

Check the IPython website to see the interesting features it brings. 查看IPython网站,了解它带来的有趣功能。

是的,它可以通过python manage.py shell ,它也可以用于查看django-extensions插件以获得额外的功能,例如shell_plus ,它提供了shell环境的所有数据库交互。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM