I am still hacking around trying to figure out what exactly is still
having issues in newforms-admin auth. After I updated the patch at
http://code.djangoproject.com/ticket/6083 , I still got a strange and
inconsistant error despite restart after restarts of apache about how
my registration couldn't import name UserCreationForm. Five more hours
this morning and I finally narrowed it down to a line of code that
registered the admin portion of the Auth system.
Right now this line from "django.contrib.auth import admin" is located
in models, which works fine if what you want is just to register the
auth system for the admin, but you get these strange anbigous errors
when you need to the tie into auth.models with any other code (I
assume an AlreadyRegistered exception is the real exception being
raised).
I thought that, typical to my personal conventions, I would then just
place that line of code into auth.__init__, but then I realized that
django.contrib.auth is imported several times and that wouldn't work
either. So now I have this one line of code that needs to be run once
and only once without a home. Any ideas, suggestions, thoughts that
the AlreadyRegistered error should fail quietly?
P.S. I changed auth.models.User.add_view to newforms as well and want
to update that ticket again but would prefer to do it after I fix this
error.