mt0078 发表于 2014-06-17 16:15

nginx+uwsgi+django报错

如题:
配置完后:
启动后浏览器访问报Internal Server Error(500错误)
看日志:no python application found, check your startup logs for errors

安装完后配置如下:
nginx配置文件
1#
2 # template for develop
3 #
4 server {
5   listen      80;
6   server_name linming-s.django.qtest.com;
7   #index       index.py;
8
9   root      /home/linming-s/devspace//my_django;
10   access_log/home/linming-s/nginx.log;
11
12
13   location / {
14   uwsgi_pass 127.0.0.1:9090;
15   include uwsgi_params;
16   }
17
18
19 }

uwsgi配置文件如下
<uwsgi>
    <socket>:9090</socket>// 设置服务的端口号
    <chdir>/home/linming-s/devspace/my_django</chdir>
    <pythonpath>..</pythonpath>
    <module>manage</module>

</uwsgi>



mt0078 发表于 2014-06-17 19:26

已经解决,uwsgi和django的链接有问题。

xxlaila 发表于 2016-03-23 11:53

回复 2# mt0078


    怎么解决的,我也遇到这个问题
页: [1]
查看完整版本: nginx+uwsgi+django报错