Question regarding Interactive Python shell response and django

2020-04-26 Thread Michael Karikari
So I find myself in a pickle. I'm using an external python API with Django, and as part of that interaction, it asks for an input from the Django python shell window. What I am trying to figure out is how can I get form input from web application to push back to the shell window. Appreciate it

Re: Question regarding Interactive Python shell response and django

2020-04-26 Thread Ryan Nowakowski
On Sun, Apr 26, 2020 at 05:43:33AM -0700, Michael Karikari wrote: > So I find myself in a pickle. > I'm using an external python API with Django, and as part of that > interaction, it asks for an input from the Django python shell window. What > I am trying to figure out is how can I get form in

Re: Question regarding Interactive Python shell response and django

2020-04-27 Thread Derek
I think you are better off creating a proper API for your Django project, using something like DRF. The Django shell is meant for direct use by an administrator working on the server. On Sunday, 26 April 2020 16:05:02 UTC+2, Michael Karikari wrote: > > So I find myself in a pickle. > I'm using

Re: Question regarding Interactive Python shell response and django

2020-04-28 Thread Michael Karikari
Ill have to look at the DRF option, the python API I'm connecting assumes you are doing this from shell, so I was trying to work around that fact On Monday, April 27, 2020 at 10:51:10 AM UTC-4, Derek wrote: > > I think you are better off creating a proper API for your Django project, > using som

Re: Question regarding Interactive Python shell response and django

2020-04-29 Thread Michael Karikari
I'm not sure if DRF will work for me. I guess I should rephrase my question: If I'm using an imported module from a Django view that requires responding to executing from the console, is there a where to surface that request through the web app to end-user can do the input? On Tuesday, April 28

Re: Question regarding Interactive Python shell response and django

2020-04-30 Thread Derek
Again; the issue is why are you mixing up the console/shell with the web-facing aspect? These are designed for different ways of interacting with Django. Its almost like you are asking "how to hit in a screw with a a hammer?". What is the underlying problem you are trying to solve? On Wednesd