Mac os x python web server

The problem with testing local files

I have Python installed. I looked online for ways of doing this, but unfortunately can't run my hello. Screen shows the source code, and I have! I tried to modify my httpd. I followed this tutorial: How do you set up Python scripts to work in Apache 2. The easiest way to get a simple "Hello, World!

follow site

Setting up a local web server on a Mac

Basically you would modify your httpd. If you use a framework like Flask , your Python app can self-host for development. Learn more about Teams. Asked 6 years, 2 months ago. Active 6 years ago.

Viewed 2k times. Grigor Grigor 2, 9 9 gold badges 36 36 silver badges 71 71 bronze badges. James Tomasino James Tomasino 1, 13 13 silver badges 22 22 bronze badges.

Local files vs. remote files

What if i dont want to use a franework? Not yet i just wanna get to run "hello world" in my browser in python. The rest will come.

How To Setup Web Server on Mac OS X

I completely disagree. Running a "hello, world" should be step 1. Installing a whole framework is beyond what he's asking for.

How to Start a Simple Web Server in Python 3 on Mac

Your email address will not be published. Save my name, email, and website in this browser for the next time I comment. Get the CSS-Tricks newsletter.


  1. sony nex 5r wifi transfer mac.
  2. Web Site 101: Using a Local Development Environment.
  3. Web Development Environments and Local Hosting?
  4. brother mfc-j5910dw software for mac.
  5. terminal emulator for mac freeware!

Leave this field empty. All comments are held for moderation. We'll publish all comments that are on topic, not rude, and adhere to our Code of Conduct. You'll even get little stars if you do an extra good job. You may write comments in Markdown.

Mac OSX and Linux – Quick and Dirty Web Server

Want to tell us something privately, like pointing out a typo or stuff like that? Contact Us. Easily manage projects with monday. Python 3: python3 -m http.

2 Replies to “Configuring Apache on Mac OS X (Mavericks) for Python scripting”

Craig Morrison. Permalink to comment August 27, Permalink to comment August 28, Rhys Lloyd. Requires installation, but with Node: npm i -g http-server Once installed, you can run from any directory: http-server. It is simpler and easy to remember. Permalink to comment July 26, Permalink to comment October 11,