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

2015-09-07 Thread Cameron Simpson
On 07Sep2015 14:57, Chris Angelico wrote: On Mon, Sep 7, 2015 at 2:05 PM, Cameron Simpson wrote: Another nice thing about Flask is that you can run it standalone without Apache. I'm knocking something together right now using Flask, and I'm intending to run

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

2015-09-06 Thread Denis McMahon
On Sun, 06 Sep 2015 23:23:14 +1000, Chris Angelico wrote: > WSGIScriptAlias / /path/to/scripts/MinstrelHall/mh.wsgi One wonders if the OP has mod_wsgi installed. https://code.google.com/p/modwsgi/wiki/WhereToGetHelp might be useful too. -- Denis McMahon, denismfmcma...@gmail.com --

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

2015-09-06 Thread Cameron Simpson
On 06Sep2015 23:23, Chris Angelico wrote: On Sun, Sep 6, 2015 at 11:07 PM, wrote: I will definitely look into python web frameworks in the future, they seem complicated to me compared to php for example. I am looking for the simplest way to test

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

2015-09-06 Thread Chris Angelico
On Mon, Sep 7, 2015 at 2:05 PM, Cameron Simpson wrote: > Another nice thing about Flask is that you can run it standalone without > Apache. I'm knocking something together right now using Flask, and I'm > intending to run it without Apache at all. There'll be an haproxy in front

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

2015-09-06 Thread Chris Angelico
On Mon, Sep 7, 2015 at 6:04 AM, Denis McMahon wrote: > On Sun, 06 Sep 2015 23:23:14 +1000, Chris Angelico wrote: > >> WSGIScriptAlias / /path/to/scripts/MinstrelHall/mh.wsgi > > One wonders if the OP has mod_wsgi installed. > >

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

2015-09-06 Thread tropical . dude . net
On Sunday, September 6, 2015 at 2:46:42 PM UTC+2, Laura Creighton wrote: > In a message of Sun, 06 Sep 2015 05:38:50 -0700, tropical.dude@gmail.com > wr > ites: > > >> What operating system are you running? It sounds to me as if you haven't > >> configured apache to add a Handler for python

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

2015-09-06 Thread Chris Angelico
On Sun, Sep 6, 2015 at 11:07 PM, wrote: > I will definitely look into python web frameworks in the future, they seem > complicated to me compared to php for example. I am looking for the simplest > way to test my python scripts till I understand better how it works

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

2015-09-06 Thread tropical . dude . net
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

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

2015-09-06 Thread Chris Warrick
On 6 September 2015 at 13:50, <tropical.dude@gmail.com> wrote: > 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

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

2015-09-06 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 04:50:23 -0700, tropical.dude@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 configur

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

2015-09-06 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 05:38:50 -0700, tropical.dude@gmail.com wr ites: >> 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

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

2015-09-06 Thread Peter Otten
Peter Otten wrote: > tropical.dude@gmail.com wrote: > >> 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 &g

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

2015-09-06 Thread tropical . dude . net
On Sunday, September 6, 2015 at 1:51:00 PM UTC+2, tropical...@gmail.com wrote: > 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

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

2015-09-06 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 14:16:37 +0200, Chris Warrick writes: >Don’t use http.server. Don’t use CGI. This is not how things work in Python. > >In Python, you should use a web framework to write your code. Web >frameworks include Flask, Django, Pyramid… Find one that’s popular and >that

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

2015-09-06 Thread Peter Otten
tropical.dude@gmail.com wrote: > 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 comma

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

2015-09-06 Thread tropical . dude . net
re 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

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

2015-09-06 Thread tropical . dude . net
re 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

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

2015-09-06 Thread tropical . dude . net
hon > >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 > &

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

2015-09-06 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 06:07:05 -0700, tropical.dude@gmail.com wr ites: >Thank you very much. > >I will definitely look into python web frameworks in the future, they seem >complicated to me compared to php for example. I am looking for the simplest >way to test my python scripts

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

2015-09-06 Thread Chris Angelico
On Mon, Sep 7, 2015 at 1:03 AM, Laura Creighton wrote: > As I was walking around town it occurred to me to ask if you have > made your something.py file executable? I don't even know if > apache on windows cares about such things, though if you are using cgi > and a unix like