- Add the sitetree application to INSTALLED_APPS in your settings file (usually ‘settings.py’).
- Check that django.core.context_processors.request is added to TEMPLATE_CONTEXT_PROCESSORS in your settings file. For Django 1.8+: django.template.context_processors.request should be defined in TEMPLATES/OPTIONS/context_processors.
- Check that django.contrib.auth.context_processors.auth is enabled in TEMPLATE_CONTEXT_PROCESSORS too.
- Run ./manage.py migrate to install sitetree tables into database.
- Go to Django Admin site and add some trees and tree items (see Making tree section).
- Add {% load sitetree %} tag to the top of a template
Posted by Cuauhtemoc to Python Django (2018-06-18 04:32)