DEV Community

Mohamed M El-Kalioby
Mohamed M El-Kalioby Subscriber

Posted on

3

Easiest Django Shell/Terminal

Django shell is a great tool to interact with Models over the terminal, but bpython is a better solution because of the autocomplete feature that makes someone's life much easier. However, bpython doesn't handle Django models in a smart way, for example if you try a filter() method, it won't allow you to autocomplete parameters using the class members,as the function has **kwargs as the function fingerprint.

So, in this article, we will discuss bpython-django a fork from bpython that handles Django in a better way, currently it handles Models and can be extended as desired.

bpython-django

Install

pip install bpython-django

Start your django shell

After the module is installed, you start you shell by
python manage.py shell -i bpython
or

python manage.py shell

Use the shell as you wish, as shown in next asciienma

Comments

You can always check with developer regarding any issues, bugs or new features at

GitHub logo mkalioby / bpython-django

bpython-django - Better Integration with Django for the famous bpython REPL

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more