Hi Manav This is the kind of thing that we'd want to see in a third party package before even considering it for core django
An existing implementation of a Python shell in the browser for Django exists in the runserver_plus command of django-extensions: https://django-extensions.readthedocs.io/en/latest/runserver_plus.html . This is actually pulling the shell feature from a separate project, werkzeug. This is intended for local debugging though and should NOT be used in any kind of production environment. 3. the shell instance would be user-specific as per the permissions of the > respective user. How do you propose to implement this? If you give someone the full power of Python, they can subvert any code you put in place to enforce permissions (or read only, etc.). They could run python code that deletes all the files on the server, or starts a bitcoin miner. This is such a high security risk that I don't think we could put it in Django. On Fri, 4 Dec 2020 at 14:01, Manav Agarwal <dpsman13...@gmail.com> wrote: > Hey everyone, > I am Manav and I am contributing to Django for the last few months. I am > developing projects using Django for the last 2 years. Currently, I was > working on a Django based project and was facing a problem. Sometimes, I > had to use the python manage.py shell along with the server running in the > other terminal window. It was a hard job for me to maintain 2 shells > running simultaneously though the other one which had the server running > was nothing to do with but still it was open in the background and also had > to manage browsers with them. Is there any functionality in Django to solve > the problem? > If there is not any, I may raise a ticket for this on trac and would be > happy to work on it. > > Benefits of the feature would be as follows : > 1. Admin would be able to work on a shell and database directly using a > command-line interface integrated within the browser like the SQL shell we > have in phpmyadmin. > 2. No need to open a separate terminal for database management and shell. > 3. the shell instance would be user-specific as per the permissions of the > respective user. > 4. A complete command-line interface to manage admin. > 5. No need to move the mouse, again and again, to add entries to the data > fields from the browser. > > -- > You received this message because you are subscribed to the Google Groups > "Django developers (Contributions to Django itself)" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-developers+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/3a828653-afb8-42fa-9912-fde32f5f7f09n%40googlegroups.com > <https://groups.google.com/d/msgid/django-developers/3a828653-afb8-42fa-9912-fde32f5f7f09n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Adam -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMyDDM2hQciJkg9S1B-ZYf4uZ%3DWuMxrCMVS5exVZbn4bukBBuA%40mail.gmail.com.