Python manage.py runserver ===> It is used for Development server, it has good feature auto restart when we are add or edit smoothing development time, as well as servers static files.
Default port server ===> localhost:8000
But production we required our application more secure needed,
WSGI(Web server gateway interface): WSGi basically interact with python app and web Server.
gunicorn server example of WSGI
nginx example of web server
static code - image, js file, css file
Dynamic code - python code
Gunicorn: Gunicorn, is a Web Server Gateway Interface (WSGI), WSGI server such as gunicorn
1. proper logging feature
2. it fast
3. it has buildin security mesure
4. It is ideally used production or staging enverment in django web app
5. WSGI server such as gunicorn not able to automatically served static files, that's why NGINX web server needs
NGINX is reverse proxy server that accept request from client and respond to the client
No comments:
Post a Comment