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


Groups > comp.lang.python > #107130

Re: how to setup for localhost:8000

Newsgroups comp.lang.python
Date 2016-04-16 15:35 -0700
References <5ea1e31b-09ba-4b6a-be8b-58886c5c5f81@googlegroups.com> <CA+y5TLbED=JjcPG4-qfn=7tH=Y=6PQa+MMpvh_8uNT2srh7dBw@mail.gmail.com> <mailman.112.1460658199.15650.python-list@python.org> <2e597a56-00ab-4370-b337-667f34eac56a@googlegroups.com> <a5cbb46c-8d7d-482f-a608-57ba48e2df40@googlegroups.com>
Message-ID <67abca1d-8ac5-4a9a-825d-3aa76d9ccf3f@googlegroups.com> (permalink)
Subject Re: how to setup for localhost:8000
From wrh8609@gmail.com

Show all headers | View raw


On Friday, April 15, 2016 at 3:04:09 PM UTC-4, Pierre Quentel wrote:
> Le jeudi 14 avril 2016 22:50:33 UTC+2, wrh...@gmail.com a écrit :
> > On Thursday, April 14, 2016 at 2:23:36 PM UTC-4, Andrew Farrell wrote:
> > > What happens when you type
> > > 
> > > http://localhost:8000
> > > 
> > > Into the address bar of your browser as this is running?
> > > 
> > > On Thu, Apr 14, 2016 at 12:46 PM, <wrh8609@gmail.com> wrote:
> > > 
> > > > Hi,
> > > >
> > > > I am working on window 7 and Python 3.5 to setup a localhost:8000 but it
> > > > did not get through as shown below:
> > > > > python -m http.server
> > > > Serving HTTP on 0.0.0.0 port 8000 ...
> > > >
> > > > But it did not show the results.
> > > >
> > > > Can someone help me how to setup the localhost?
> > > >
> > > > Thanks,
> > > > Wen-Ruey
> > > >
> > > > --
> > > > https://mail.python.org/mailman/listinfo/python-list
> > > >
> > 
> > hi Andrew,
> > 
> > Yes. after I type http:\\localhost:8000, the browser did not show anything except a empty page without any errors.
> > 
> > Thanks,
> > Wen-Ruey
> 
> Hi,
> 
> When you type http://localhost:8000, do you see something in the console after the line  "Serving HTTP on 0.0.0.0 port 8000 ..." ?
> 
> If the server actually serves requests on port 8000 you should see a log message such as
> 
> 127.0.0.1 - - [15/Apr/2016 20:57:32] "GET / HTTP/1.1" 200 -
 Hi Pierre,

When I type http://localhost:8000, I did not see anything in the console after the line "Serving HTTP on 0.0.0.0 port 8000 ... I believe the way I ran was not correct as shown below:
> python -m http.server 
Serving HTTP on 0.0.0.0 port 8000 ...

Also if I use internet Explorer, it shows HTTP 404 errors.
Do you think the way I am doing of the localhost:8000 setting was not correct?

Thanks,
Wen-Ruey

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


Thread

how to setup for localhost:8000 wrh8609@gmail.com - 2016-04-14 10:46 -0700
  Re: how to setup for localhost:8000 Peter Otten <__peter__@web.de> - 2016-04-14 20:07 +0200
  Re: how to setup for localhost:8000 Andrew Farrell <armorsmith42@gmail.com> - 2016-04-14 13:06 -0500
    Re: how to setup for localhost:8000 wrh8609@gmail.com - 2016-04-14 13:50 -0700
      RE: how to setup for localhost:8000 Dan Strohl <D.Strohl@F5.com> - 2016-04-14 21:14 +0000
      Re: how to setup for localhost:8000 Pierre Quentel <pierre.quentel@gmail.com> - 2016-04-15 12:03 -0700
        Re: how to setup for localhost:8000 wrh8609@gmail.com - 2016-04-16 15:35 -0700
          Re: how to setup for localhost:8000 Monte Milanuk <memilanuk@gmail.com> - 2016-04-17 09:27 -0700
          Re: how to setup for localhost:8000 Pierre Quentel <pierre.quentel@gmail.com> - 2016-04-17 10:11 -0700
            Re: how to setup for localhost:8000 wrh8609@gmail.com - 2016-04-22 14:41 -0700
  Re: how to setup for localhost:8000 Random832 <random832@fastmail.com> - 2016-04-14 14:36 -0400
  Re: how to setup for localhost:8000 Chris Angelico <rosuav@gmail.com> - 2016-04-15 04:39 +1000
  Re: how to setup for localhost:8000 Vito De Tullio <vito.detullio@gmail.com> - 2016-04-15 07:59 +0200
  Re: how to setup for localhost:8000 Chris Angelico <rosuav@gmail.com> - 2016-04-15 17:38 +1000

csiph-web