Warm tip: This article is reproduced from serverfault.com, please click

Stop Python localhost server on every port

发布于 2020-11-28 16:33:07

Since I tried a tutorial with Python / Django using venv etc, i'm blocked with a localhost server that shows folder of this project:

enter image description here

I use Visual Studio Code and I use LiveServer configured on port 0. Each time I want to start LiveServer, it renders me this page and nothing else.

Have you any idea why and how to stop it?

I modified my PATH folder to make the Python's project work. Is it the problem?

Thank you

Questioner
Veermo
Viewed
0
mohamed elgamal 2020-11-29 00:37:32

The way to fix this is by going to VS Code >> File >> Open Folder, and the select the folder with your html file in it then you can run live server properly. However, if you want to stop live server simply closing the web browser it's running on will do.