Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Suggestion: Add Interactive django shell to run django ORM queries #3

Closed
shtayeb opened this issue Dec 17, 2023 · 4 comments
Closed

Comments

@shtayeb
Copy link
Contributor

shtayeb commented Dec 17, 2023

Add Interactive django shell to run django ORM queries and show the output

How it works ?

638383986838394976

Approaches:

1

Add another command python manage.py django-ishell to launch the interactive shell.

2

Integrate it into existing django-tui command and have separate screen for it.
638384053662758328

Side Note:

I already have a MVP version of the feature, if you confirm I will create a pull request as soon as possible.

@shtayeb
Copy link
Contributor Author

shtayeb commented Dec 18, 2023

@anze3db ?

@anze3db
Copy link
Owner

anze3db commented Dec 18, 2023

I'm not exactly sure what you mean by interactive shell. How does it differ from python manage.py shell? If you have the MVP ready, feel free to open a PR (or send a link to your repo), and I'll check it out.

About the approaches: I'm not a big fan of approach 2 because it would add an extra step to the primary workflow of looking up commands, but maybe we could bind something like ctrl+i to get to the interactive shell?

@shtayeb
Copy link
Contributor Author

shtayeb commented Dec 18, 2023

Sure, Here is the pr link.

The main way that it differs from manage.py shell is the ease of use. In here you will be writing queries in an editor like environment.

Quick Demo

bandicam.2023-12-18.15-17-15-066.mp4

@anze3db
Copy link
Owner

anze3db commented Dec 19, 2023

@shtayeb thank you for the contribution ❤️ ! The interactive shell is available in version 23.9 that was just released!

@anze3db anze3db closed this as completed Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants