I think every dir on the import path needs and __init__.py

On Oct 14, 5:10 pm, When ideas fail <andrewkenyon...@gmail.com> wrote:
> If i have a lib folder in my app what is the correct way to reference
> it in settings.py?
>
> I've tried this
>
> MIDDLEWARE_CLASSES = (
>     'myapp.lib.django_authopenid.middleware.OpenIDMiddleware'
>    # and
>   'myapp.django_authopenid.middleware.OpenIDMiddleware'
> )
>
> the file its in is
>
> \Apache2.2\myapp\lib\django_authopenid
>
> but I get a 500 Internal Server and the error log tells me the
> following:
>
> [Thu Oct 15 00:56:39 2009] [error] [client 127.0.0.1]     raise
> exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"'
> % (mw_module, e)
> [Thu Oct 15 00:56:39 2009] [error] [client 127.0.0.1]
> ImproperlyConfigured: Error importing middleware
> abeona.django_authopenid.middleware: "No module named
> django_authopenid.middleware"
>
> I'd appreciate any help
>
> Thanks
>
> Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to