How to run django with nginx on a windows machine?

前端 未结 4 1735
一生所求
一生所求 2020-12-29 13:37

I have a django project. I have installed nginx server. I want to run nginx along with django on windows machine. I have tried a few blogs Nginx Django Uwsgi. But all of the

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-29 13:43

    Best way (IMHO) is using apache+mod_wsgi. Both uWSGI and Gunicorn are not windows-friendly (albeit uWSGI has cygwin support, so you can eventually try it [if you are brave enough]).

    Another approach would be installing a linux vm (virtualbox, vmware...) on the windows machine to host your application and proxy requests from local IIS to the virtual system.

提交回复
热议问题