Reputation: 4933
I have been working with django since 2 years, still confuse with some of the server related concepts of django as follows:-
What web server
does django
use when I run python manage.py runserver
?
What is wsgi
(I know it is web server gateway interface
(sets of rules can say protocols) act as an middle-ware for the communication of web server and web application) then wsgi
is the server django runs on?
Upvotes: 1
Views: 71
Reputation: 11906
From this code - Django has built in WSGI Server which is used to serve the app when we use runserver
. The server code can be found here. However this is not recommended to be used in production.
WSGI
is a protocol, a standard. You can build your own web server which complies to this standard (like Django's built in server). Or you can use one of the open source, production ready, mature and battle proven wsgi servers. Personally I like uwsgi
.
Upvotes: 2