Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

docs/deploying/wsgi-standalone: Add Twisted Web. #609

Merged
merged 1 commit into from

2 participants

@MostAwesomeDude

I've been meaning to do this for quite some time, but I never got around to
it. Hopefully this is neutral and useful enough to be included in the main
docs.

@MostAwesomeDude MostAwesomeDude docs/deploying/wsgi-standalone: Add Twisted Web.
I've been meaning to do this for quite some time, but I never got around to
it. Hopefully this is neutral and useful enough to be included in the main
docs.
f6a5a7a
@kennethreitz
Collaborator

Looks good, thanks!

@kennethreitz kennethreitz merged commit fedc96c into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 11, 2012
  1. @MostAwesomeDude

    docs/deploying/wsgi-standalone: Add Twisted Web.

    MostAwesomeDude authored
    I've been meaning to do this for quite some time, but I never got around to
    it. Hopefully this is neutral and useful enough to be included in the main
    docs.
This page is out of date. Refresh to see the latest.
Showing with 23 additions and 0 deletions.
  1. +23 −0 docs/deploying/wsgi-standalone.rst
View
23 docs/deploying/wsgi-standalone.rst
@@ -66,6 +66,29 @@ event loop::
.. _greenlet: http://codespeak.net/py/0.9.2/greenlet.html
.. _libevent: http://monkey.org/~provos/libevent/
+Twisted Web
+-----------
+
+`Twisted Web`_ is the web server shipped with `Twisted`_, a mature,
+non-blocking event-driven networking library. Twisted Web comes with a
+standard WSGI container which can be controlled from the command line using
+the ``twistd`` utility::
+
+ twistd web --wsgi myproject.app
+
+This example will run a Flask application called ``app`` from a module named
+``myproject``.
+
+Twisted Web supports many flags and options, and the ``twistd`` utility does
+as well; see ``twistd -h`` and ``twistd web -h`` for more information. For
+example, to run a Twisted Web server in the foreground, on port 8080, with an
+application from ``myproject``::
+
+ twistd -n web --port 8080 --wsgi myproject.app
+
+.. _Twisted: https://twistedmatrix.com/
+.. _Twisted Web: https://twistedmatrix.com/trac/wiki/TwistedWeb
+
.. _deploying-proxy-setups:
Proxy Setups
Something went wrong with that request. Please try again.