-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
custom user model problem #531
Comments
Apologies - 0.8.6 released |
With 0.8.6 I get the following traceback when running "manage.py runserver":
It seems that get_user_document is imported too early in auth.py. During import of models.py "contribute_to_class" is called, which in turn tries to import auth.User which isn't defined at this point. |
I get the exact same error. @andialbrecht did you find a solution? |
Just hit this today myself. I might have time tomorrow to look into it but I'm not sure. |
Hey guys - I had the same exception - opened issue #545 for this with a quick fix (see issue details for this). |
Hi, I have an issue. When I run the django project with mongoengine, it showed an error message:'module' object has no attribute 'User' I wonder why it would get such an error. Could anybody tell me why? Thanks in advance. |
Yes, see issue #545 for a quick fix. Hopefully they'll do an official
|
That's strange, in my local ubantu system, it runs ok. But in the server's, the problem is as I mentioned before. Is the reason different version of mongoengine of something else? |
Yes, it's only on MongoEngine 0.8.5 and 0.8.6.
|
Yes, I've fixed it. You're very helpful. |
in auth.py
from .mongo_auth import get_user_document
this raise import error
i changed it with
from .mongo_auth.models import get_user_document
so far so good.
The text was updated successfully, but these errors were encountered: