tordjango

Simple management command to serve Django via Tornado


License
BSD-3-Clause
Install
pip install tordjango==0.1

Documentation

TorDjango

This is a simple management command that serves a Django project using Tornado.

python manage.py runtornado [8000, 8001, ...]

Requirements

  • Django
  • Tornado

Installation

To install 0.1 release from PyPi:

pip install tordjango

To install directly from Github:

pip install git+git://github.com/gulielmus/tordjango.git

runtornado Command

The management command runtornado takes the following arguments:

  • --reload: Use code change auto-reloader
  • --static: Serve static files
  • --multiple: Use multiple processes (one per CPU core; --reload will be ignored)

Note: --multiple requires that the Tornado ioloop be uninitialized before the management command completes. If it has already been initialized (say, by an application that's adding callbacks somewhere), the server will fail to start. --multiple is incompatible with the code reloader, and --reload will be ignored.

TODO

  • Configuration option for specifying additional Tornado handlers.