> It sounds like your admin.py file has already been imported by something
> else before the autodiscover() is called.  Did you add an import of your
> app's admin into your models.py? That shouldn't be necessary. Also make sure
> you don't have an import for it in your __init__.py file; that was the
> recommendation when I first migrated to newforms-admin but it led to
> multiple registrations like this so was replaced by autodiscover().  You
> should not have an explicit import of your app's admin anywhere;
> autodiscover() is, I believe, the only thing that should be doing the import
> thus ensuring registration is only run once.

No, I don't. I should clarify that when I previously had
newforms-admin working correctly, it was in a different project. The
trouble that I'm having is with a project which I started after the
newforms-admin merge.

> Alternatively, you are sure you removed the registration calls from your
> models.py file?

Yep.

> I'm pretty stumped by this myself.  I can't recreate it (and actually right
> now am away from home so unable to even try anything for several hours).
> Maybe if you can figure out and solve what is causing the multiple
> registration exception that will shed some light....

I've uploaded my complete project tree (it's fairly small, and I've
included the sqlite database). The admin username and password is
'test'. It's available at:

http://jonatkinson.co.uk/static/junk/myproj.zip

FWIW, I'm using SVN trunk at revision 7951. I realise that asking
anyone to download and run my project just to help me fix a problem is
quite a presumptious request, but I live in hope :-)

--Jon

--~--~---------~--~----~------------~-------~--~----~
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