Re: How to run an external python script in my Django view

2016-01-16 Thread Larry Martell
On Sat, Jan 16, 2016 at 2:28 AM, wrote: > Thanks Larry for the reply. Nothing is happening after invoking the script(I > think, I am doing something wrong in using the python script in Django > views). I have tried running the script separately which is working fine and > giving the output. I wo

How to run an external python script in my Django view

2016-01-16 Thread Luis Zárate
How you call your script in the view? You said that is import as from utils.scriptname import classname but what method do you call in the view. Remember, all code in script file that are not in a function o class will execute at import time. I guest you have something like def my_view(request):

Re: How to run an external python script in my Django view

2016-01-16 Thread Musab Gültekin
If you do this frequently, your view will likely growing with wastes of script. You should clean it regularly. On Friday, January 15, 2016 at 4:56:07 PM UTC+2, raman@gmail.com wrote: > > Hi, > > I have a script which is running fine and giving output in the form of > list of lists. I want to

Re: How to run an external python script in my Django view

2016-01-15 Thread raman . balyan
Thanks Larry for the reply. Nothing is happening after invoking the script(I think, I am doing something wrong in using the python script in Django views). I have tried running the script separately which is working fine and giving the output. On Friday, January 15, 2016 at 8:32:51 PM UTC+5:30,

Re: How to run an external python script in my Django view

2016-01-15 Thread raman . balyan
Thanks Larry for the reply. Nothing is happening after invoking the script(I think, I am doing something wrong in using the python script in Django views). I have tried running the script separately which is working fine and giving the output. On Friday, January 15, 2016 at 8:32:51 PM UTC+5:30,

Re: How to run an external python script in my Django view

2016-01-15 Thread Larry Martell
On Fri, Jan 15, 2016 at 9:54 AM, wrote: > Hi, > > I have a script which is running fine and giving output in the form of list > of lists. I want to use that data in my Django view. I am not getting, how > to run a script in django view. > I created a folder utils inside which, I have put the scri

How to run an external python script in my Django view

2016-01-15 Thread raman . balyan
Hi, I have a script which is running fine and giving output in the form of list of lists. I want to use that data in my Django view. I am not getting, how to run a script in django view. I created a folder utils inside which, I have put the script. Also, I have created __init__.py in the utils