Django's manage.py shell won't indent
Posted
by hora
on Stack Overflow
See other posts from Stack Overflow
or by hora
Published on 2010-05-20T20:17:43Z
Indexed on
2010/05/20
20:20 UTC
Read the original article
Hit count: 287
django
|django-manage.py
I seem to have run into a strange bug or more likely some setting I am unfamiliar with on my system that is not allowing me to tab when I am in Django's shell (python manage.py shell
is how I run it).
For obvious reasons this is proving to be annoying since I can't do any loops or conditonals in the shell. If I hit tab it completes all functions that are available to me, like bash does in a terminal. I've tried just using spaces for my indents but I always get an indentation error.
Does anyone know why this is happening and what I can do to get tab to work in my shell again? (It may be relevant to know that this is on a Ubuntu 9.04 system).
Edit: tab works fine in the regular pythong shell, it's only in django's that it doesn't.
Thanks.
© Stack Overflow or respective owner