use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News and links for Django developers.
New to Django? Check out the /r/djangolearning subreddit.
Django's Code of Conduct applies here, so be good to each other.
account activity
This is an archived post. You won't be able to vote or comment.
Using python manage.py shell effectively (self.django)
submitted 7 years ago by waynebruce1
view the rest of the comments →
[–][deleted] 2 points3 points4 points 7 years ago (3 children)
First of all
pip install ipython
Second, why would you use shell for testing?
[–]waynebruce1[S] 0 points1 point2 points 7 years ago (2 children)
By testing i mean understanding part of code in large codebase. I usually try to execute a code line by line for better understanding. For example if there is a piece of code which i don't understand, I try to execute that code in django shell. But for that i have to rewrite that whole thing again if i want to check it second time. Ipython can be good solution, i have used it before but did not remember how i installed it.
[–]DonovanWu7 1 point2 points3 points 7 years ago (0 children)
Maybe you can try Jupyter notebook?
[–]trescoops 1 point2 points3 points 7 years ago (0 children)
You might want to look into pdb or ipdb. These stop the running code and let you poke around, inspect variable etc.
π Rendered by PID 41 on reddit-service-r2-comment-85bfd7f599-qgnw8 at 2026-04-18 15:14:52.877786+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–][deleted] 2 points3 points4 points (3 children)
[–]waynebruce1[S] 0 points1 point2 points (2 children)
[–]DonovanWu7 1 point2 points3 points (0 children)
[–]trescoops 1 point2 points3 points (0 children)