Thanks for the reply Rohan. I am trying to create a Django App in which, user will be adding some info in the text box and on clicking submit, I wish to send the contents of the textbox to the py script. The output of the py script, I wish to display it in a table on my HTML template.
I hope I was able to explain myself. Also where should I place my py sript, which will be triggered on submitting the data. Thanks, Smaran On Fri, Jul 6, 2012 at 6:14 PM, Rohan <roha...@gmail.com> wrote: > For a cgi script or a wsgi script, all you need to do is add a script > alias in your apache conf (if you're using apache). The parameters should > be available as a a dictionary in both the cases (cgi.FieldStorage() and > envrion). > > Although it would help to know why you want to do this. If you already > have django up and running, you could just implement the functionality of > your script as a view function > > > On 7/6/2012 6:20 PM, Smaran Harihar wrote: > > Hey Djangoers, > > I am trying to execute a python script on submit button on a html file. > > So i have created a view which renders a html template file and on > 'submit', I wish to send few parameters to the py script. > > I wanted to know, > > 1. where should I keep my py script? > 2. I have not modified my html into Django template, but what > modifications will it need if I want to send parameters to py script on > submit? > > -- > Thanks & Regards > Smaran Harihar > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Thanks & Regards Smaran Harihar -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.