You do not import models like you do in Django. models are
automatically executed in alphabetic order before the controller.

You only import third party modules (as long as they are properly
installed) or modules in the /app/modules/ folder using

   mymodule=local_import('mymodule')

Hope this helps.

Massimo


On Jan 20, 5:34 am, kari <kar...@utu.fi> wrote:
> Hi,
> I am facing a problem on Windows installation of web2py. When trying
> to run applications I get the following error:
>
> ImportError: No module named ...
>
> ... replaced by a model I have used in the import statement in
> default.py
>
> All the modules I have used are installed and thety can be imported
> when called from the python console or with any ordinary python
> application by 'python foo.py' type of a call.
>
> It seems web2py does not understand the paths the same way as my
> python installation. Any ideas how this could be fixed?
>
> Many thanks.
-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to