Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #51383
| X-Received | by 10.224.171.72 with SMTP id g8mr55940705qaz.7.1375007554384; Sun, 28 Jul 2013 03:32:34 -0700 (PDT) |
|---|---|
| X-Received | by 10.50.4.99 with SMTP id j3mr260503igj.6.1375007554119; Sun, 28 Jul 2013 03:32:34 -0700 (PDT) |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!cb17no119768qab.0!news-out.google.com!ce7ni0qab.0!nntp.google.com!cb17no192768qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.python |
| Date | Sun, 28 Jul 2013 03:32:33 -0700 (PDT) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=106.195.187.9; posting-account=kJjq3QoAAADiAI4EyAdJgV_r0B7eXDeS |
| NNTP-Posting-Host | 106.195.187.9 |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <2ebe3375-6aa6-45cd-b534-0241bd025eb3@googlegroups.com> (permalink) |
| Subject | Configuraion to run pyhton script on ubuntu 12.04 |
| From | Jaiky <jaiprakashsingh213@gmail.com> |
| Injection-Date | Sun, 28 Jul 2013 10:32:34 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Xref | csiph.com comp.lang.python:51383 |
Show key headers only | View raw
want to run a python script which contains simple form of html on firefox browser , but dont know what should be the configuration on ubuntu 12.04 to run this script i.e cgi configuration
My code is
ubder
in /var/www/cgi-bin/forms__.py
#!/usr/bin/env python
import webapp2
form ="""
<form action="//www.google.com/search">
<input name="q">
<input type="submit">
</form>"""
class MainPage(webapp2.RequestHandler):
def get(self):
#self.response.headers['Content-Type'] = 'text/plain'
self.response.out.write(form)
app = webapp2.WSGIApplication([('/', MainPage)],
debug=True)
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Configuraion to run pyhton script on ubuntu 12.04 Jaiky <jaiprakashsingh213@gmail.com> - 2013-07-28 03:32 -0700
Re: Configuraion to run pyhton script on ubuntu 12.04 Pierre Jaury <pierre@jaury.eu> - 2013-07-28 13:34 +0200
Re: Configuraion to run pyhton script on ubuntu 12.04 Jaiky <jaiprakashsingh213@gmail.com> - 2013-07-28 09:19 -0700
Re: Configuraion to run pyhton script on ubuntu 12.04 Jaiky <jaiprakashsingh213@gmail.com> - 2013-07-29 03:44 -0700
csiph-web