Mac下django nginx配置备忘录

Python Django

nginx.conf位置

/usr/local/nginx/conf/nginx.conf

django.xml

置于项目根目录下

<uwsgi>
    <socket>127.0.0.1:1236</socket>
    <chdir>/Users/eric/GIT/YITU/SC/YITU_SER/YITU</chdir>
    <pythonpath>..</pythonpath>
    <module>wsgi</module>
</uwsgi>

启动服务

sudo nginx

uwsgi -x /root/my_django/uwsgi.xml