Django Cheroot provides a bridge to use Cheroot, the high-performance, pure-Python HTTP server used by CherryPy, to serve your Django WSGI application.
An alternative to other WSGI servers like Gunicorn, uWSGI, etc.
Full documentation lives at modbender.in/django-cheroot.
pip install django-cherootIn settings.py, add the app to INSTALLED_APPS:
INSTALLED_APPS = [
...,
"django_cheroot",
]The simplest usage, with default settings:
python manage.py cherootWith explicit arguments (these are the defaults):
python manage.py cheroot -ip 127.0.0.1 -p 8000 -w 40 -t 30 -c 20python manage.py cheroot --hostip 127.0.0.1 --port 8000 --maxthreads 40 --minthreads 30 --connections 20| Name | Short | Long | Type | Default |
|---|---|---|---|---|
| IP Address | -ip | --hostip | str | 127.0.0.1 |
| Port | -p | --port | int | 8000 |
| Max Worker Threads | -w | --maxthreads | int | 40 |
| Min Threads in Thread Pool | -t | --minthreads | int | 30 |
| Max Queued Connections | -c | --connections | int | 20 |
| Supported | |
|---|---|
| Python | 3.8+ |
| Django | 4.2, 5.x, 6.0 |
| Cheroot | 10+ |