Why do we need uwsgi to host Django on nGINX

Let's get a look:

Django is compatible with WSGI. WSGI is the web server gateway interface.

Now Nginx is a server. Therefore, we should be able to communicate with Django. So why do we need uWSGI between ??

Everyone says uWSGI is a server that supports the wsgi protocol.

Then what is the uwsgi protocol. How is it different from WSGI (which is a protocol / specification)

And again, why do we find a combination of Django + uWSGI + Nginx ??

Can't talk WSGI between nginx and django ?? Coz WSGI in itself means being a specification between WebServer (nginx) and web applications (django)

+5
source share
1 answer

WSGI - , , Python, Nginx - -. , - Nginx Django, HTTP- WSGI.

uWSGI - WSGI. gunicorn mod_wsgi ( Apache, Apache). uWSGI , nginx , , .

+1

All Articles