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.

Reply via email to