Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django Shell with autocomplete and colored text

Tags:

python

django

About 6 months ago, I was developing with Django and could do the usual python manage.py shell. The command line would come up with colored text (classes were purple or something, functions were yellow, etc.) and allow me to type in a few characters, press tab, and it would suggest completions. It was a huge help for learners like me, I think.

Now, it no longer does this. It's a boring black/gray terminal and tab completion doesn't work.

I'm using a Python 3.9 virtual environment, Django 3.2, and Pycharm (April 21).

Does the terminal show colored text and do completions for anyone else currently? If so, please share your django/python versions & setup. I would gladly replicate to get this functionality back.

like image 591
Kentaro Avatar asked Sep 14 '25 22:09

Kentaro


1 Answers

I think previously you were using the interactive terminal.

pip install ipython

Use this and the previous terminal will be back.

like image 183
sankalp Avatar answered Sep 17 '25 12:09

sankalp