On Jan 22, 1:06 pm, walter <[email protected]> wrote:
> Where can I placed my middleware code that is common for the different
> controllers and would used by them?

If the code is short (and fast-running), the model file is fine
(db.py), but if the code is longer, put it in the web2py/site-packages
folder and import it only inside the controller functions that need it.

Reply via email to