# Node tree template

**URL:** <https://forum.djangoproject.com/t/node-tree-template/20384>\
**Category:** Templates & Frontend\
**Created:** [April 20, 2023, 3:48am UTC](https://forum.djangoproject.com/t/node-tree-template/20384 "2023-04-20T03:48:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DIGnmg](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/dignmg/32/13334_2.png) [@DIGnmg](https://forum.djangoproject.com/u/DIGnmg)\
**Post date:** [April 20, 2023, 3:48am UTC](https://forum.djangoproject.com/t/node-tree-template/20384/1 "2023-04-20T03:48:04Z")

</div>

Hello! I have a question regarding recursive templates. I have a piece of data that will be dynamic as far as it’s children. This days will be used as a listing tree in the ui. I tried to do it the best way I know how using included on the template itself. But ended up getting a maximum recursive error. I would prefer to render this tree using Django but looking I might have to throw some JavaScript on the page. Before I did that I wanted to ask if anyone knew a good way to do this? Thank you!

---

<div class="post-metadata">

**Author:** ![CodenameTim](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/codenametim/32/31507_2.png) [@CodenameTim](https://forum.djangoproject.com/u/CodenameTim)\
**Post date:** [April 26, 2023, 11:56pm UTC](https://forum.djangoproject.com/t/node-tree-template/20384/2 "2023-04-26T23:56:04Z")

</div>

You should be able to do recursive includes with Django as long as you have a base case defined. Can you share with us what you tried?

---

<div class="post-metadata">

**Author:** ![DIGnmg](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/dignmg/32/13334_2.png) [@DIGnmg](https://forum.djangoproject.com/u/DIGnmg)\
**Post date:** [June 22, 2023, 3:35pm UTC](https://forum.djangoproject.com/t/node-tree-template/20384/3 "2023-06-22T15:35:42Z")

</div>

I think i figured it out! Thank you for the reply! When I can ill come back and add code for the future
