Hi Karen, On May 14, 5:09 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Thu, May 14, 2009 at 4:06 PM, Mike Driscoll <kyoso...@gmail.com> wrote: > > > Hi, > > > I am working my way through the Django 1.0 book by Ayman Hourieh from > > Packt and I just reached the Admin Interface chapter (which is number > > 8 if you have the book). Anyway, when I login to my site's admin, I'm > > told that I don't have permission to edit anything. I loaded up the > > shell and did a user.is_superuser and it returned True. > > > I then tried user.get_all_permissions() and that returned an empty set > > object, so something's messed up. Can someone tell me how to add the > > proper permissions that the superuser should have? > > > I am running on Windows XP with Python 2.5 and Django 1.0.2 (final). > > Thanks! > > I am not familiar with that book. Does it instruct you to include > admin.autodiscover() in your urls.py file as is described here: > > http://docs.djangoproject.com/en/1.0/ref/contrib/admin/#hooking-admin... > > ? > > The usual reason for that message is not that the user's permissions are > missing, but rather that nothing has been registered to the admin, so no > user has permission to edit anything, as there is nothing to edit. And the > usual reason for nothing being registered is that admin.autodiscover() isn't > being called. > > Karen
The book does not mention anything about the autodiscover() call, although it seems to have done everything else right. Once I added that, the admin pages starting working as expected. Thanks a lot! Mike --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---