Hey, I just installed django-mptt lib, but I donβt know how to make it work :(
I added
from mptt.models import MPTTModel
class Category(MPTTModel):
slug = models.SlugField(max_length=200, unique=True)
name = models.CharField(max_length=100)
parent = models.ForeignKey('self', blank=True, null=True, related_name='child')
It works well
-
But when I go to the Django admin page of my site, I received an error message:
TemplateDoesNotExist at / admin / search / category /
admin / mptt_change_list.html
source
share