On Saturday, January 22, 2011 4:38:35 PM UTC-5, walter wrote:
>
> It is the web2py/site-packages. OK! Many thanks.
See http://web2py.com/book/default/chapter/04#Third-Party-Modules. Depending
on your needs, you can import Python modules from 'site-packages' or put the
code in your application
It is the web2py/site-packages. OK! Many thanks.
In the model? Really? It's curiously enough. I have thought I should
to create file with my code and place it in a certain, according to
the specification, place.
On Jan 22, 1:06 pm, walter 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
in a model file
5 matches
Mail list logo