I have been having this issue with newforms admin a lot recently
including in a patch for the Auth code. I really think that this is a
problem with newforms admin. I think that the Already Registered error
should be called silently to fix this issue or admin.py should be
imported when the apps are intialized, and not placed in __init__ or
another module so it doesn't accidentally get called. I posted a
thread on Django devs 
https://groups.google.com/group/django-developers/browse_thread/thread/ba8b115b74d6e502
but no one has gotten back to me. I am glad someone else has been
getting this problem. The worse part about this problem is when it
occurs it happens so deeply that the error comes back as a failure to
import a module that works fine in every other circumstance. I wasted
a good part of a morning trying to figure out why auth would import
20% of the time and not the rest of the times.

My temporary solution for this problem is importing deeper in the
module or by placing the import project.app.admin in another app's
init that was more simple and not called as frequently. This is not a
permanent fix by any stretch of the imagination and I hope that if we
keep making noises someone will talk about this fairly major design
flaw.

On Feb 22, 3:54 am, "Almir Karic" <[EMAIL PROTECTED]> wrote:
> http://dpaste.com/36380/here is my code as well as the error, it
> seems that __init__.py is executed more than once, any ideas why? any
> ideas how to fix it?
>
> (i am trying to follow the reccommandations 
> fromhttp://code.djangoproject.com/wiki/NewformsAdminBranch)
>
> --
> error: one bad user found in front of screen
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to