I am using django (revision 8055.). after updating the site seems to work fine but the admin panel still shows me
You don't have permission to edit anything. I do have admin.autodiscover() and induvidually registered models in admin.py in all apps. I tried commenting out the admin.site.register() but it still shows me permission denied. I am the only super user on the site. Any recommendations. On Jul 21, 12:46 am, "Justin Wong" <[EMAIL PROTECTED]> wrote: > Never mind,newforms-adminworks great. :) > > I forgot that I had copied a custom version of the old admin templates > and it was parsing that instead. > > Cheers! > Justin > > On Sun, Jul 20, 2008 at 7:27 PM, Justin Wong <[EMAIL PROTECTED]> wrote: > > Well, I tracked down the admin/index.html page and I see that it > > checks the variable app_list. > > > Going to django/contrib/admin/sites.py, I put a print statement to > > print out my app_list. Can anyone spot anything wrong? > > > [ { 'has_module_perms': True, > > 'models': [ { 'admin_url': 'auth/group/', > > 'name': <django.utils.functional.__proxy__ > > object at 0x89ad60c>, > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}, > > { 'admin_url': 'auth/user/', > > 'name': <django.utils.functional.__proxy__ > > object at 0x89ad80c>, > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}], > > 'name': 'Auth'}, > > { 'has_module_perms': True, > > 'models': [ { 'admin_url': 'blog/entry/', > > 'name': u'Entries', > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}], > > 'name': 'Blog'}, > > { 'has_module_perms': True, > > 'models': [ { 'admin_url': 'database/article/', > > 'name': <django.utils.functional.__proxy__ > > object at 0x89adfac>, > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}, > > { 'admin_url': 'database/artist/', > > 'name': <django.utils.functional.__proxy__ > > object at 0x89ada8c>, > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}, > > { 'admin_url': 'database/dictionary/', > > 'name': u'Dictionary entries', > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}, > > { 'admin_url': 'database/event/', > > 'name': <django.utils.functional.__proxy__ > > object at 0x89ad68c>, > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}, > > { 'admin_url': 'database/image/', > > 'name': <django.utils.functional.__proxy__ > > object at 0x89ada6c>, > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}, > > { 'admin_url': 'database/poem/', > > 'name': <django.utils.functional.__proxy__ > > object at 0x8967e4c>, > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}, > > { 'admin_url': 'database/signature/', > > 'name': <django.utils.functional.__proxy__ > > object at 0x89addec>, > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}, > > { 'admin_url': 'database/stamp/', > > 'name': <django.utils.functional.__proxy__ > > object at 0x89ade0c>, > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}, > > { 'admin_url': 'database/style/', > > 'name': <django.utils.functional.__proxy__ > > object at 0x89ad98c>, > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}, > > { 'admin_url': 'database/word/', > > 'name': <django.utils.functional.__proxy__ > > object at 0x89ad92c>, > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}, > > { 'admin_url': 'database/work/', > > 'name': <django.utils.functional.__proxy__ > > object at 0x893c24c>, > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}, > > { 'admin_url': 'database/year/', > > 'name': <django.utils.functional.__proxy__ > > object at 0x8967f4c>, > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}], > > 'name': 'Database'}, > > { 'has_module_perms': True, > > 'models': [ { 'admin_url': 'market/category/', > > 'name': u'Categories', > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}, > > { 'admin_url': 'market/image/', > > 'name': <django.utils.functional.__proxy__ > > object at 0x89ad7ac>, > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}, > > { 'admin_url': 'market/orderformfield/', > > 'name': <django.utils.functional.__proxy__ > > object at 0x89ad5cc>, > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}, > > { 'admin_url': 'market/order/', > > 'name': <django.utils.functional.__proxy__ > > object at 0x89ad5ec>, > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}, > > { 'admin_url': 'market/product/', > > 'name': <django.utils.functional.__proxy__ > > object at 0x89ad62c>, > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}], > > 'name': 'Market'}, > > { 'has_module_perms': True, > > 'models': [ { 'admin_url': 'sites/site/', > > 'name': <django.utils.functional.__proxy__ > > object at 0x89ad74c>, > > 'perms': { 'add': True, > > 'change': True, > > 'delete': True}}], > > 'name': 'Sites'}] > > > Cheers! > > Justin > > > On Sun, Jul 20, 2008 at 5:24 PM, Justin Wong <[EMAIL PROTECTED]> wrote: > >> Hello! > > >> I'm still getting the "You don't havepermissionto edit anything." > >> message and I'm kinda stumped. I am using Django changelist 8012, > >> which should be post merge. > > >> I put print right before the __import__ statement and it seems like > >> the admin.py files for auth, sites, and my apps are being imported > >> correctly. I'm not gettingerrormessages telling me that I'm > >> importing multiple times. > > >> I'm logged on as the superuser, so that shouldn't be a problem... right? > > >> I started a new project andnewforms-adminseems to work great. > > >> If anyone has any more suggestions, it'd be great! (What file is this > >> message from?) > > >> Cheers! > >> Justin > > >> On Sun, Jul 20, 2008 at 6:21 AM, Karen Tracey <[EMAIL PROTECTED]> wrote: > >>> On Sun, Jul 20, 2008 at 9:11 AM, eka <[EMAIL PROTECTED]> wrote: > > >>>> Hi > > >>>> I'm installing it from SVN and got "You don't havepermissionto edit > >>>> anything", I made it work before, but now when I try to follow the > >>>> book can't. Could you tell me what should I add to have full > >>>> permissions? > > >>> I have no idea what is going on in cases where people have > >>> admin.autodiscover() in their urls.py yet still get this "You don't have > >>>permissionto edit anything" message. I'd suggest you put a print statement > >>> in django/contrib/admin/__init__.py after the __import__ in autodiscover() > >>> and verify that the auth app, at a minimum, is being found by > >>> autodiscover(). If not put a print in before the import and ensure > >>> adutodiscover() is really being called and attempting to import the admin > >>> module for each installed app. > > >>> (Also I'm not sure what 'book' is being referred to here, since there's > >>> certainly nothing printed that coversnewforms-admin. Even the tutorial, I > >>> believe, is still missing mention of autodiscover(), which means if you > >>> are > >>> following it exactly that may be why you are getting this message.) > > >>> Karen > > >>>> Regards > >>>> On Jul 20, 7:43 am, "Jon Atkinson" <[EMAIL PROTECTED]> wrote: > >>>> > On Sun, Jul 20, 2008 at 2:01 AM, stryderjzw <[EMAIL PROTECTED]> > >>>> > wrote: > > >>>> > > Strange, I'm getting the message "You don't havepermissionto edit > >>>> > > anything." on the admin homepage. I've done admin.autodiscover() on > >>>> > > the project urls page, I've created admin.py files for my models and > >>>> > > registered the classes with admin.site.register(). > > >>>> > Same here (having followed the earlier... > > read more » --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---