Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #96056

Re: Can anyone help me run python scripts with http.server?

Path csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!news.astraweb.com!border5.a.newsrouter.astraweb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <lac@openend.se>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'configure': 0.04; 'handler': 0.04; 'subject:help': 0.07; 'cc:addr:python-list': 0.09; 'editor.': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'scripts,': 0.09; 'python': 0.10; 'apache': 0.14; 'subject:python': 0.14; 'everyone,': 0.15; 'server,': 0.15; '>to': 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'http.server': 0.16; 'message-id:@fido.openend.se': 0.16; 'out?': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'subject:run': 0.16; 'laura': 0.18; '2015': 0.20; 'cc:addr:python.org': 0.20; 'cc:2**1': 0.22; 'so.': 0.22; 'sep': 0.22; 'code,': 0.23; 'advance.': 0.23; 'forgot': 0.23; "haven't": 0.24; "doesn't": 0.26; 'command': 0.26; 'have,': 0.27; '-0700,': 0.29; 'received:se': 0.29; 'restart': 0.29; 'cc:no real name:2**1': 0.29; 'anyone': 0.32; 'run': 0.33; 'http': 0.33; 'add': 0.34; 'server': 0.34; 'configured': 0.35; 'but': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'operating': 0.37; 'charset :us-ascii': 0.37; 'listing': 0.38; 'files': 0.38; 'subject:with': 0.40; 'header:Message-Id:1': 0.61; 'email addr:gmail.com': 0.62; 'show': 0.62; 'guides': 0.72; 'sounds': 0.76; 'click': 0.76; '>with': 0.84; 'header:In-reply-to:1': 0.84
To tropical.dude.net@gmail.com
cc python-list@python.org, lac@openend.se
From Laura Creighton <lac@openend.se>
Subject Re: Can anyone help me run python scripts with http.server?
In-reply-to <3877a9ae-edbd-4d36-925a-5cb3789bd1bd@googlegroups.com>
References <3877a9ae-edbd-4d36-925a-5cb3789bd1bd@googlegroups.com>
Comments In-reply-to tropical.dude.net@gmail.com message dated "Sun, 06 Sep 2015 04:50:23 -0700."
MIME-Version 1.0
Content-Type text/plain; charset="us-ascii"
Content-ID <28004.1441541739.1@fido>
Content-Transfer-Encoding quoted-printable
Date Sun, 06 Sep 2015 14:15:39 +0200
X-Greylist Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [82.96.5.2]); Sun, 06 Sep 2015 14:15:42 +0200 (CEST)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.170.1441541749.8327.python-list@python.org> (permalink)
Lines 29
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1441541749 news.xs4all.nl 23770 [2001:888:2000:d::a6]:60936
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:96056

Show key headers only | View raw


In a message of Sun, 06 Sep 2015 04:50:23 -0700, tropical.dude.net@gmail.com wr
ites:
>Hello everyone,
>
>I want to use python for web development but I
>could not configure my Apache server to run python
>with the guides I found on the internet.
>
>Can anyone help me configure http.server
>to run python scripts?
>
>I ran the command python -m http.server --cgi to start the http server,
>and if I put index.html, I will see the page but if I use
>index.py, it doesn't show the page, I can only see the
>directory listing of the files and when I click on 
>index.py, it doesn't run the code, I can see it just
>like in the editor.
>
>Can anyone help me out?
>
>Thanks in advance.

What operating system are you running?  It sounds to me as if you haven't
configured apache to add a Handler for python scripts, or you have, but
forgot to restart apache after you did so.

Laura

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Can anyone help me run python scripts with http.server? tropical.dude.net@gmail.com - 2015-09-06 04:50 -0700
  Re: Can anyone help me run python scripts with http.server? Laura Creighton <lac@openend.se> - 2015-09-06 14:15 +0200
    Re: Can anyone help me run python scripts with http.server? tropical.dude.net@gmail.com - 2015-09-06 05:35 -0700
    Re: Can anyone help me run python scripts with http.server? tropical.dude.net@gmail.com - 2015-09-06 05:38 -0700
      Re: Can anyone help me run python scripts with http.server? Laura Creighton <lac@openend.se> - 2015-09-06 14:45 +0200
        Re: Can anyone help me run python scripts with http.server? tropical.dude.net@gmail.com - 2015-09-06 06:07 -0700
          Re: Can anyone help me run python scripts with http.server? Chris Angelico <rosuav@gmail.com> - 2015-09-06 23:23 +1000
            Re: Can anyone help me run python scripts with http.server? Denis McMahon <denismfmcmahon@gmail.com> - 2015-09-06 20:04 +0000
              Re: Can anyone help me run python scripts with http.server? Chris Angelico <rosuav@gmail.com> - 2015-09-07 12:48 +1000
          Re: Can anyone help me run python scripts with http.server? Laura Creighton <lac@openend.se> - 2015-09-06 17:03 +0200
          Re: Can anyone help me run python scripts with http.server? Chris Angelico <rosuav@gmail.com> - 2015-09-07 01:13 +1000
      Re: Can anyone help me run python scripts with http.server? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-09-06 13:11 -0400
    Re: Can anyone help me run python scripts with http.server? tropical.dude.net@gmail.com - 2015-09-06 05:42 -0700
  Re: Can anyone help me run python scripts with http.server? Chris Warrick <kwpolska@gmail.com> - 2015-09-06 14:16 +0200
  Re: Can anyone help me run python scripts with http.server? Laura Creighton <lac@openend.se> - 2015-09-06 14:28 +0200
  Re: Can anyone help me run python scripts with http.server? Peter Otten <__peter__@web.de> - 2015-09-06 14:32 +0200
  Re: Can anyone help me run python scripts with http.server? Peter Otten <__peter__@web.de> - 2015-09-06 14:43 +0200
  Re: Can anyone help me run python scripts with http.server? tropical.dude.net@gmail.com - 2015-09-06 05:47 -0700

csiph-web