how to setup for localhost:8000

Chris Angelico rosuav at gmail.com
Fri Apr 15 03:38:02 EDT 2016


On Fri, Apr 15, 2016 at 3:59 PM, Vito De Tullio <vito.detullio at gmail.com> wrote:
> Chris Angelico wrote:
>
>>> Just a note, some browsers will try to resolve this as www.localhost.com
>>> - try http://127.0.0.1:8000 .
>>
>> Huh? Why should the name 'localhost' get a dot com added?
>
> ask browser vendors...

I'd more ask your local resolver. If the name 'localhost' can be
correctly resolved (it's commonly in your hosts file, and if not, your
local DNS resolver can easily be configured to be authoritative), no
additional TLD should be added ('localhost' is itself a valid TLD).

ChrisA



More information about the Python-list mailing list