In my case, it worked with the debian server:
include /etc/nginx/uwsgi_params;
In the location tag in my nginx server configuration file, for example:
location /sistema { include /etc/nginx/uwsgi_params; uwsgi_pass unix://path/sistema.sock; }
Also, check if the following packages are installed: uwsgi-plugin-Python
source share