Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

python

django

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

i.e. does django have: irb

?

like image 247
Blankman Avatar asked Nov 28 '22 10:11

Blankman


2 Answers

you mean python manage.py shell ?

like image 157
virhilo Avatar answered Dec 05 '22 15:12

virhilo


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.

like image 45
daks Avatar answered Dec 05 '22 16:12

daks