On Sat, Jan 16, 2016 at 2:28 AM, <[email protected]> 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 would set a breakpoint with pdb in the view and then run the django devel server and when you hit the bp step into the invocation of your script and see what happens. > On Friday, January 15, 2016 at 8:32:51 PM UTC+5:30, [email protected] > wrote: >> >> On Fri, Jan 15, 2016 at 9:54 AM, <[email protected]> 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 script. Also, I >> > have >> > created __init__.py in the utils folder. Then, I am importing it in my >> > views >> > as "from utils.scriptname import classname". I'm struggling in that from >> > long and appreciate help. >> >> What happens when you invoke the script? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACwCsY5_8F%3DnpFnenm6zWJVJAdzQezW2J02%2BeP1i4PfDJ6nvng%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

