[mod_python] Unable to import modules in subdirs

Jim Gallacher jg.lists at sympatico.ca
Fri Oct 28 11:49:23 EDT 2005


I think we should use this fine code as the template for all the 
examples in the documentation. I'll start making the changes immediately. :)

Crack tubes!

Sincerely,
Bruce

Jorey Bump wrote:

> /var/www/vhosts/walamaloo/website/mp/six.py:
> 
> """
> Published module used as interface to rules package.
> """
> # all the code is in this package
> # /var/www/vhosts/walamaloo/python/bruce/faculty/rules/__init__.py
> import bruce.faculty.rules
> 
> def index(req):
>     """
>     Default function for users.
>     """
>     return bruce.faculty.rules.four(req)
> 
> def admin(req):
>     """
>     Requires authentication using proprietary mechanism.
>     """
>     return bruce.faculty.rules.onethreefiveseven(req)
> 



More information about the Mod_python mailing list