按着《 Python Web 开发:测试驱动方法》教程来的,处于第 8 章。
然而本问题和书里的内容联系不大。
1 、 django 是跑起来的
可以访问
Django version 1.8.5, using settings 'superlists.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C.
2 、 nginx 配置: site-avaliable 下的 superlists
server { listen 8001; server_name localhost; location / { proxy_pass http://localhost:8000; } }
并且已做软连接至 site-enabled 下。
可是访问 127.0.0.1:8001 还是没有,求指导!
![]() | 1 iEverX 2015-12-21 13:13:39 +08:00 可以试试 uwsgi 这个直接 proxy_pass localhost ,和直接运行 django server 有什么区别吗? |
![]() | 2 lzy4223 2015-12-21 16:00:56 +08:00 |