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 it without Apache at all. There'll b

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 > of it for other

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 my python scripts till I understand better how

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. > > https://code.google.com/p/modwsgi/wiki/WhereToGetHelp might be useful

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 -- https://ma

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 system you will need

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 till

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 and when > I can configure my o

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 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 configure http.server > to run

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 tropical . dude . net
On Sunday, September 6, 2015 at 2:16:04 PM UTC+2, Laura Creighton wrote: > In a message of Sun, 06 Sep 2015 04:50:23 -0700, 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 int

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 >> to run python scripts? >> >> I ran the

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:16:04 PM UTC+2, Laura Creighton wrote: > 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 > >wit

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:16:04 PM UTC+2, Laura Creighton wrote: > 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 > >wit

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 command python -m http.server --

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 you

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

2015-09-06 Thread Chris Warrick
On 6 September 2015 at 13:50, 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 http.server > to run python scripts? > > I ran the command pyt

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 configure http.server >to run

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, and i