Python Forum
what is difference between python CGI and webapplication
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what is difference between python CGI and webapplication
#1
what is difference between python CGI and webapplication
Reply
#2
Quote:WSGI runs the Python interpreter on web server start, either as part of the web server process (embedded mode) or as a separate process (daemon mode), and loads the script into it. Each request results in a specific function in the script being called, with the request environment passed as arguments to the function.

CGI runs the script as a separate process each request and uses environment variables, stdin, and stdout to "communicate" with it.

And i believe web applications such as django are advanced wrappers around wsgi.
Recommended Tutorials:
Reply
#3
Django, Flask, bottle.py, Pyramid, Sanic are web frameworks running on WSGI which is running on some web server like Apache or Nginx.

You can use these frameworks to build a web application. Or you can use plain SGI. The frameworks just make it easier for you.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020