When I am working with a module located in application/modules
directory with development server with python 2.7, having the module's
name with 'plugin_' prefix works fine.

Stuff that does NOT work

import plugin_module

I deployed the module with the app to the Apache server on Windows
with python 2.7. , and it gives me ImportError. So I changed the
module's name to without 'plugin_' prefix, it started working.

Stuff that does work

import module

It gave me a feeling of crisis a bit since I was confident that it
would work as It has worked on development server. I just want to
confirm that the problem is of my naming convention, or some policy
related matter of web2py, or python's module naming violation. Thank
you.

Reply via email to