Recently contacted with a bit of Django, it's really very efficient to do web development. It is very convenient to play in this machine, a command, and then in the browser 127.0.0.1 can see the page. But it is not possible to find the IP to others and access it from someone else's machine. The original is because there is not an important module installed MOD_WSGI, what is this module used to do? Is the bridging between Python and Apache, because Django is written in Python.
Then downloaded from GitHub mod_wsgi source code, follow the tutorial but compile failed, hint: fatal error: ' httpd.h ' No such file or directory.
According to the log at the prompt to compile the source code when the connection header file path is:/usr/include can not find this folder, the whole search also did not find out. It's so weird. Contacted the author, do not know why, but also said that my Mac is more wonderful.
Very hard to find because there is no command-line tool to install Xcode. After installation, this header file appears in the booking location.
Installing the Xcode command line tool must be installed from the terminal:
xcode-Select -Install
Entering the above code will pop up an installation dialog box Click OK and finish in a few minutes. You will find the/usr/include folder.
Re-compile it all over again.
The solution to the unsuccessful problem of compiling MOD_WSGI on MAC os