Preface: Try to use Python to build a Web page, under Windows and Linux, this article mainly explains the problems and solutions encountered in the Python+apache+mod_wsgi+django server configuration process under window.
Body:
First, you need to download Python, Apache, Mod_wsgi, Django, as follows
mod_wsgi:http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi (because python2.7, so download mod_wsgi?4.4.21+ap24vc9?cp27?none ? WIN32.WHL)
apache:http://www.apachelounge.com/download/vc10/
Python: Please download the version 2.7 yourself before downloading Pycharm,django follow-up instructions on how to download
Then, configure Apache on your computer, unzip the Apache file, and then copy the extracted Apache24 folder into your project directory. Your project root directory is e:/wamp/apache24/, and if you want to put it in a different directory, you need to modify httpd.conf, including ServerRoot, DocumentRoot, Directories,scriptalias. You need to change the address of your Apache directory. (see here for Baidu, address: http://jingyan.baidu.com/article/91f5db1b359b861c7f05e319.html)
Next, win+r input cmd, command line (first enter D:, then enter CD E:/wamp/apache24) into the bin directory under Apache, enter httpd-k install Apache installed as Windows Backend service, If the input httpd-k install failed, read the newspaper what error, and then modify the httpd.conf according to the error.
Configure Apache reference address two: http://jingyan.baidu.com/article/d8072ac47baf0eec95cefdca.html
Window under Python+apache+mod_wsgi+django configuration (python2.7)