I use the latest web2py(2.3.2). Let us say the modules folder in my application has a file called utility.py
I try the following in controller import utility this issues a ticket saying Traceback (most recent call last): File "<controller name.py>", line 1, in <module> File "<path to web2py>web2py/gluon/custom_import.py", line 73, in custom_importer modules_prefix, globals, locals, [itemname], level) ImportError: No module named <app name>.modules http://about.me/srinathgs I write code @ Alamut Srinath G S On Sat, Feb 16, 2013 at 8:46 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Which web2py version do you have? How are you doing the import? Please > show us an example. "application.modules" should not be referenced anywhere > in the source since it does not exist. > > > > On Saturday, 16 February 2013 06:42:56 UTC-6, Srinath G S wrote: >> >> Hi, >> >> As mentioned in the subject, when I try importing any code inside the >> modules forlder of the application's folder, it says, >> application.modules not found. >> >> I tried putting __init__.py file in the modules folder. But that didn't >> help. >> >> Any suggestions? >> http://about.me/srinathgs >> I write code @ Alamut >> Srinath G S >> >> -- > > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.