On Nov 11, 11:38 am, oggie rob <[email protected]> wrote:
> Hi all,
> I'm working on a project which uses pyamf and produces the following
> exception during login:
>
> AttributeError: 'LazyModule' object has no attribute 'Manager'
I'm a bit late in responding here, but if anybody else runs into this,
here's how I solved this:
a) explicitly imported ContentType in my wsgi.py file (referenced
from WSGIScriptAlias):
from django.contrib.contenttypes.models import ContentType
b) expanded the pyamf egg
With (a), it was causing the actual import error due to some magic in
pyamf's importing (and although I didn't find it, probably affected by
some caching voodoo). With (b), there was some other obscure issue to
do with importing.
Debugging was very difficult with pyamf. My recommendation after going
through all of that is to turn off DEBUG & have mail set up (otherwise
you won't see the errors) and isolate your testing parameters (I build
a flex test client) - obvious stuff, really.
HTH,
-rob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---