Closed GoogleCodeExporter closed 9 years ago
Do you always import User via django.contrib.auth.models? Or do you sometimes
import
from user.models?
Original comment by wkornew...@gmail.com
on 8 Jul 2009 at 4:33
the latter
Original comment by nick.bau...@gmail.com
on 8 Jul 2009 at 5:05
Then please change all your imports.
Original comment by wkornew...@gmail.com
on 8 Jul 2009 at 5:06
[deleted comment]
So everywhere I have:
from user.models import User
I change to:
from django.contrib.auth.models import User
#from user.models import User
And I still get the same problem.
Original comment by nick.bau...@gmail.com
on 8 Jul 2009 at 7:06
OK, I missed an import. It seems to be working, now!
Is this way of doing it going to stay around? I really think App Engine Patch is
awesome, but the way these dependencies are managed seem hard to grok and easy
to
screw up by stupid people like me :)
Original comment by nick.bau...@gmail.com
on 8 Jul 2009 at 7:34
I think they'll have to stay that way. The documentation could put more
emphasize on
it, but in general it's mentioned there. In any case, by loading from
django.contrib.auth.models your code becomes less dependent on a specific
module
configuration, so this import style was always favored in the documentation.
Original comment by wkornew...@gmail.com
on 8 Jul 2009 at 10:27
Original issue reported on code.google.com by
nick.bau...@gmail.com
on 8 Jul 2009 at 4:26