I am trying to use django-sitetree but I don’t understand how to do step 3 which is:
“Go to Django Admin site and add some trees and tree items.”
How to make a sitetree in the admin panel? I believe the first step is to choose an alias for the “Site Tree” you are about to add.
The next step is to add “Site Tree Item”. On this page you have to choose parent, title, url. Considering my app is dynamic with url structure like this localhost:8000/categoryname/entryname how do I choose urls?
By the way I am trying to add breadcrumbs in my templates.
To create a tree:
You’ll address your tree by this alias in template tags;
Create first item:
Create second item (that one would handle ‘categoryname’ from your ‘categoryname/entryname’):
Create third item (that one would handle ‘entryname’ from your ‘categoryname/entryname’):
Steps 6 and 7 need some clarifications:
In titles we use Django template variables, which would be resolved just like they do in your templates.
In URLs we use Django’s named URL patterns (documentation). That is almost idential to usage of Django ‘url‘ tag in templates.
I hope this description should fill the documentation gap %)