cherrypy.scaffold package

Module contents

<MyProject>, a CherryPy application.

Use this as a base for creating new CherryPy applications. When you want to make a new app, copy and paste this folder to some other location (maybe site-packages) and rename it to the name of your project, then tweak as desired.

Even before any tweaking, this should serve a few demonstration pages. Change to this directory and run:

cherryd -c site.conf

class cherrypy.scaffold.Root[source]

Bases: object

Declaration of the CherryPy app URI structure.

_cp_config = {'tools.log_tracebacks.on': True}
default(*args, **kwargs)[source]

Render catch-all args and kwargs.


Render HTML-template at the root path of the web-app.

other(a=2, b='bananas', c=None)[source]

Render number of fruits based on third argument.