views:

22

answers:

1

I've decided to use django-easytree to create a forum hierarchy in django. I downloaded the source via Mercurial from bitbucket. And added the following to a new django app:

http://bytebucket.org/fivethreeo/django-easytree/src/7ab11cd55b09/docs/install.rst

I added a couple of fields to the model so now it looks like this:

class ExampleNode(BaseEasyTree):

    """ any other fields you want here """
    title = models.CharField(max_length=100)
    description = models.TextField()

    objects = EasyTreeManager()

My admin.py located in /MyProject/forum/ is as follows:

from forum.models import ExampleNode
from easytree.admin import EasyTreeAdmin
from django.contrib import admin

class ExampleNodeAdmin(EasyTreeAdmin):
    pass

admin.site.register(ExampleNode, ExampleNodeAdmin)

But when I login at the /admin/ page I get:

Site administration

You don't have permission to edit anything.

But surely I should be getting at least the basic admin/users tables?

A: 

admin.autodiscover() was commented out in urls.py.

D'oh.

Anarchist