{% load mptt_tags %}
<ul>
    {% recursetree menu %}
        <li>
            <a href="{{ node.url | safe }}">{{ node.name }}</a>
            {% if not node.is_leaf_node %}
                <ul class="children">
                    {{ children }}
                </ul>
            {% endif %}
        </li>
    {% endrecursetree %}
</ul>

