On May29, 5:38pm, mika <miss.from.h...@gmail.com> wrote:
> As in topic, I have a problem with importing. I saw similar posts, but
> they don't help me to solve it.
> I have a file called addons.py in modules/ directory.
> In controller, i'm trying to import like this:
>
> import applications.sara.modules.addons as addons
> (sara is the name of my app)
>
> What I'm doing wrong?

It should be ok. Guess you have to dive into your specific error
ticket.

Just in case, make sure there is an __init__.py inside applications/
yourapp and applications/yourapp/modules.  (By default there already
has one. But who knows...)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@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