Hello. I'm following along with djangobook.com and trying to make necessary changes to port django to version 1.0. In Django's Site Administration, chapter 6, I run into the error:
Exception Type: AlreadyRegistered Exception Value: The model Book is already registered Exception Location: /usr/local/lib64/python2.5/site-packages/django/ contrib/admin/sites.py in register, line 64 I used the site administration site successfully with just "Book", and then when I attempted to add the other models (Auther, Publisher), I received the above error. in admin.py I have: from django.contrib import admin from models import Book, Author, Publisher class BookAdmin(admin.ModelAdmin): pass admin.site.register(Book, BookAdmin) class AuthorAdmin(admin.ModelAuthor): pass admin.site.register(Author, AuthorAdmin) class PublisherAdmin(admin.ModelPublisher): pass admin.site.register(Publisher, PublisherAdmin) When I updated admin.py I ran: python manage.py syncdb It is as if the database wasn't "synced" though, and that two instances of this model are trying to be created. When I searched around for this error, I found instances of this occuring in 0.96, with the model being called several times. The Admin changes in 1.0 were said to resolve this, so perhaps it is something else. I appreciate any help. Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---