+ 13

How to use python as a localhost server.

I am creating this thread to show people some of Python's hidden gems haha. Not many people I know, knew that Python can be used as a localhost server but here's how to do it. 1. Open your command line. 2. Ensure your python version is 3.x meaning 3 and above 3. Run this command. - python -m http.server 4. open a new tab 5. Type in this URL - localhost:8000 And that's it! Your welcome 😏😊

23rd Mar 2017, 3:59 AM
Vesse
Vesse - avatar
3 Respostas
+ 11
oooo
23rd Mar 2017, 5:12 AM
Ahri Fox
Ahri Fox - avatar
+ 10
Always valuable to learn something new :)
23rd Mar 2017, 7:28 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 2
it awesome
23rd Mar 2017, 8:51 AM
Geofrey Foya
Geofrey Foya - avatar