django-cpserver /

Filename Size Date modified Message
cpserver
52 B
45 B
1.5 KB
1.1 KB
873 B

django-cpserver

cpserver is a Django application, which is intended to solve simple, yet useful task: run your Django project under CherryPy webserver. It contains two commands:

  • runcpdebug, which outputs information about each request (in format, similar to Apache's access_log). It is useful as replacement for regular runserver command.
  • runcpserver, which is quite silent (it only tells you configuration after starting). It is useful for running as backend for Nginx or HAProxy or whatever you'd like to use.

Installation

It's quite simple: put cpserver directory under your Python's sys.path (in site-packages or in your Django project tree structure) and add 'cpserver' to INSTALLED_APPS setting.

Of course, you'll need installed CherryPy 3, either whole suite or just their wsgiserver module. You can even put wsgiserver in cpserver's directory (where translogger.py sits).

Thanks

Thanks to DjangoCerise project, from which I've taken initial code.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.