Embedding a production-ready HTTP server in your Django application by installing an app - easy as Py!
dj-tornado uses dj-static to serve your dynamic pages and your static assets with tornado's great non-blocking HTTP server.
Simply install dj-tornado
pip install dj-tornado
Add it to your INSTALLED_APPS
INSTALLED_APPS = (
...,
'dj_tornado',
)
And then run it directly
python manage.py tornadoserver
or in a Procfile
web: python manage.py tornadoserver