[EMAIL PROTECTED] wrote:
> OK, I'm new to Django and this is probably making a silly mistake but,
> to me the admin.site.register(Tag) line should appear at the bottom of
> the Tags model. If this is done Django will not syncdb or runserver
> because it thinks "Tag" has been registered more than once. However,
> if you put the admin.site.register(Tag) line in any of the models that
> are importing the Tags model it works fine - shows up in the admin
> correctly, and the relationship works.
> 
> Is this how it should work ?
> 
No. Your app directory should contain an admin.py module. In that you
import your models, create your admin.ModelAdmin subclasses and register
your models (with the admin.ModelAdmin subclasses as required).

regards
 Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC              http://www.holdenweb.com/

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