{% extends "docs/doc.html" %} {% block title %}General Index | Django Documentation{% endblock %} {% block toc-wrapper %}{% endblock %} {% block current-page-title %}General Index{% endblock %} {% block body %}

General Index

{% for letter, _ in doc.genindexentries %} {{ letter }} {% if not forloop.last %} |{% endif %} {% endfor %}

{% for letter, entries in doc.genindexentries %}

{{ letter }}

{% for name, contents in entries %}
{# contents.0 is a list of links for the item #} {% if contents.0 %} {{ name }} {% else %} {{ name }} {% endif %}
{# contents.1 is a list of subitems #} {% if contents.1 %} {% for subname, sublinks in contents.1 %}
{{ subname }} {% for link in sublinks|slice:"1:" %}, [Link]{% endfor %}
{% endfor %} {% endif %} {% endfor %}
{% endfor %} {% endblock %}