Import home-made modules

Hi,
How to import home-made modules to views.py? I put the modules in the same folder of views.py (browser), the modules cannot be found. Where should I put them in and how can I import them?

Thanks,

peijun

I assume you are using Python 3. In this case, you must either stick to absolute imports (i.e. use the full module path to your module) or indicate that you use a relative import. For example, if you want to import a sibling module M, this could look like from . import M.

Thanks.

peijun