简体   繁体   中英

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?

ie does django have: irb

?

你的意思是python manage.py shell

If you want to have a more powerful Python shell to use with Django, you can look at IPython . Just install it and the python manage.py shell will use ipython instead of the default one.

Check the IPython website to see the interesting features it brings.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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