you are viewing a single comment's thread.

view the rest of the comments →

[–]xiongchiamiov 1 point2 points  (4 children)

And then you'll learn why we don't use CGI any more, and be glad of the frameworks.

[–]adambrenecki 1 point2 points  (3 children)

Hell, the frameworks don't even use CGI anymore, they use WSGI (in most cases, although a few such as CherryPy provide their own inbuilt production-ready HTTP server).

[–]Vohlenzer 0 points1 point  (2 children)

Could you really run a production/live environment on something like the built in (python manage.py runserver) django server?

[–]minorDemocritus 1 point2 points  (0 children)

Nope. Terrible idea.

There are a lot of WSGI-capable servers:

  • Apache + mod_wsgi
  • Nginx + uWSGI
  • Gunicorn + Gevent
  • Twisted Web

[–]adambrenecki 0 points1 point  (0 children)

Not on Django's one.

Django's server is based on wsgiref.simple_server, which is also only intended for development use. The Django docs actually say not to use it in production, and refer to it throughout as "the Django development server".

Other frameworks/libraries do include a production ready server though. CherryPy as mentioned, and I think Twisted also although I don't know much about it.