You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
django-cherrypy-odeon is a Django app that allows you to run the cherrypy WSGI server as a production or as a development server (replacing the 'runserver' command with a threaded cherrypy instance).
Installation:
- add wsgiserver/ from the cherrypy project in your python path. The bundled version was patched to ignore malformed HTTP headers and to optionally output the served path to mimic devserver's behavior, so it's recommended over the upstream version.
- add django_cherrypy_odeon to INSTALLED_APPS in your settings.py
Usage:
- "./manage.py runcpserver help" - for the production server
- "./manage.py runserver_cp help" - for the development server
Additional files:
- cherrypy_server.sh - helper script for starting/stopping/restarting the production server. It should stay in the Django project dir
- cherrypy_init_script.debian and cherrypy_init_script.gentoo - example init scripts for Debian and Gentoo using cherrypy_server.sh
This is a fork of django-cpserver ( http://github.com/lincolnloop/django-cpserver ) since before the BSD licence was added so we took the liberty of licensing it under GPLv3.