TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Treebeard — Efficient tree model implementations for Django

20 pointsby mattculbrethalmost 16 years ago

2 comments

teiloalmost 16 years ago
I use this. It's a great alternative to django-mptt. Lighter-weight and faster. If you are using Django-mptt, you can migrate your Model to a Treebeard ns_tree simply be renaming two fields.<p>There are no bundled tag libraries or forms in Treebeard, so you will have to re-invent the wheel here. However, the django-mptt tags was broken anyway. It didn't provide enough info to create a proper nested, unordered list. Also, the mptt MoveNodeForm works in Treebeard with just a couple tweaks.
评论 #710554 未加载
stuff4benalmost 16 years ago
Nice library, as a Java developer it's one more thing I'm jealous of. Anyways, reading through the api documentation, he references three types of trees: Materialized Path, Adjacency List, and Nested Sets and the following books, <a href="http://www.elsevier.com/wps/find/bookdescription.cws_home/702605/description" rel="nofollow">http://www.elsevier.com/wps/find/bookdescription.cws_home/70...</a> and <a href="http://www.rampant-books.com/book_0601_sql_coding_styles.htm" rel="nofollow">http://www.rampant-books.com/book_0601_sql_coding_styles.htm</a>.<p>Wonder if it would be feasible to re-implement in Java?