What is the section argument for in tools.staticdir ? #2015
-
This requires cherrypy/cherrypy/lib/static.py Lines 300 to 319 in 6387a2b I found it via the scaffold example, here: cherrypy/cherrypy/scaffold/__init__.py Lines 50 to 55 in 6387a2b Playing around with E.g. if we have: files = tools.staticdir.handler(
section='/different', then the route is still different = tools.staticdir.handler(
section='/files', then the route is So what is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I bet it corresponds to the config file section. See https://docs.cherrypy.dev/en/latest/basics.html#serving-a-whole-directory for an INI-style example. |
Beta Was this translation helpful? Give feedback.
I bet it corresponds to the config file section. See https://docs.cherrypy.dev/en/latest/basics.html#serving-a-whole-directory for an INI-style example.