[web2py] Re: Importing files present in models in db.py

2013-06-17 Thread Anthony
Files in the /models folder are executed by the framework in a prepared environment, so they are not to be imported (i.e., they are not standard Python modules). Same goes for controllers. If you want to create a Python module and import it, put it in the /modules folder or anywhere on the PYTH

[web2py] Re: Importing files present in models in db.py

2013-06-17 Thread Apoorve Mohan
Hi The problem with modules is solved. I was missing __init__.py file. But how to import files present in models in db.py. This is still unclear. -- Thanks Apoorve On Monday, June 17, 2013 1:23:57 PM UTC+5:30, Apoorve Mohan wrote: > > Hello All > > In my applications i have several files prese