On Wed, Jun 23, 2010 at 11:52 AM, Jonathan Hayward <
[email protected]> wrote:

> what is an appropriate way to guarantee that Entity is only registered
> once?
>

Yes, it happens because models.py may be imported more than once.  You
should put admin registrations in an admin.py file, not models.py, and call
admin.autodiscover() from urls.py. See:
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#modeladmin-objectsand
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#hooking-adminsite-instances-into-your-urlconf
.

Karen
-- 
http://tracey.org/kmt/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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