admin.autodiscover() in the urls.py did the trick.

Thanks for the answers.

On Jul 20, 10: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 have permission to 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
> permission to 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 covers newforms-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 have permission to 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 advice on the list). Is there
> > > any more useful information which I could post to help debug this?
>
> > > --Jon
--~--~---------~--~----~------------~-------~--~----~
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