I’m trying out django-template-repl for debugging a template issue and it’s pretty awesome.
One of the features of the tool is that you can go:
python manage.py templateshell -u /admin/
and pull up the context for that url location.
Unfortunately no matter what configuration of /admin/ or other urls in my site I try to pull up, I always get
/Library/Python/2.6/site-packages/template_repl/utils.py(11)pdb_with_context()->None
I am running it with the optional –pdb flag to see if I’m getting context in. And oh, my tab completion doesn’t work either. 🙁
Any ideas on what I’m doing wrong? Thanks in advance
Finally got around to trying the solution codysoyland put up in the comments section. Sure enough, you need to have ipdb installed for this functionality to work. Now it works great.