Django can be deployed in many ways, and nginx+uwsgi is one of the more common ways.
In this method, our usual approach is to use nginx as the front-end of the server, which will receive all requests from the WEB and manage the requests in a unified manner. nginx handles all static requests by itself (this is the strength of NGINX). Then, NGINX passes all non-static requests to Django through uwsgi, which is processed by Django to complete a WEB request.
uwsgi official website: http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html
I will not translate them one by one. I followed the official website process and it has been unsuccessful (the conf file in Django did not refer successfully, and nginx did not load it, resulting in the configured nginx path and port never being uploaded). Most Chinese websites are also translated. The content of the official website has no practical significance
The final solution: configure the server information directly in /etc/nginx/site-available/default, and then restart nginx: sudo service nginx restart, done
').addClass('pre -numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });The above introduces the Django + ninx + uwsgi configuration and environment construction, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.