Serve your current directory
You can quickly serve your current directory by running:
python -m SimpleHTTPServer
And now just visit localhost:8000
in your browser!
Written by Chris Seymour
Related protips
2 Responses

If you're on python3:
python -m http.server
over 1 year ago
·

You can define the port as well
python -m SimpleHTTPServer 8888
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Related Tags
#python
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#