Re: admin.py -- AlreadyRegistered

2008-12-02 Thread djan
Pardon me. I incorrectly followed the suggestion, should have been the following in admin.py: admin.site.register(Book) admin.site.register(Author) admin.site.register(Publisher) What is the difference between this and, say, class BookAdmin(admin.ModelAdmin): pass admin.site.register(Book, B

Re: admin.py -- AlreadyRegistered

2008-12-02 Thread djan
Thanks for the replies. I restarted the dev server (and even my x session). I first tried: class BookAdmin(admin.ModelAdmin): pass #admin.site.register(Book, BookAdmin) class AuthorAdmin(admin.ModelAuthor): pass #admin.site.register(Author, AuthorAdmin) class PublisherAdmin(admin.ModelP

Re: admin.py -- AlreadyRegistered

2008-12-02 Thread djan
Thanks for the replies. I restarted the dev server (and even my x session). I first tried: class BookAdmin(admin.ModelAdmin): pass #admin.site.register(Book, BookAdmin) class AuthorAdmin(admin.ModelAuthor): pass #admin.site.register(Author, AuthorAdmin) class PublisherAdmin(admin.ModelP

Re: admin.py -- AlreadyRegistered

2008-12-02 Thread please smile
hi, class BookAdmin(admin.ModelAdmin): pass # admin.site.register(Book, BookAdmin) Just put '#' in front of admin.site.register(Book, BookAdmin) .Now run the server ,if it s ok then remove the # On Tue, Dec 2, 2008 at 12:47 PM, Roland van Laar <[EMAIL PROTECTED]> wrote: > > djan wrote: > >

Re: admin.py -- AlreadyRegistered

2008-12-01 Thread Roland van Laar
djan wrote: > 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

admin.py -- AlreadyRegistered

2008-12-01 Thread djan
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 L