<p>Am working with django Publisher example, I want to list all the publishers in the db via my list_publisher.html template, my template looks like;</p>

<pre><code>{% extends "admin/base_site.html" %}
{% block title %}List of books by publisher{% endblock %}
{% block content %}

&lt;div id="content-main"&gt;
&lt;h1&gt;List of publisher:&lt;/h1&gt;

{%regroup publisher by name as pub_list %}


{% for pub in pub_list %}


&lt;li&gt;{{ pub.name }}&lt;/li&gt;

{% endfor %}
&lt;/div&gt;
{% endblock %}
</code></pre>

<p>but when I run "<a href="http://127.0.0.1:8000/list_publisher/" rel="nofollow noreferrer">http://127.0.0.1:8000/list_publisher/</a>" the template just prints the page title with no error! What am I doing wrong?</p>

A few suggestions:
check that  your base_site.html does define a
```
{% block content %}{% endblock %}
```
section to be refine by your my list_publisher.html
check the cardinality of your list:
```
{%regroup publisher by name as pub_list %}{{ pub_list|length }}
```
. That should at least display the length of your list. If is is '0'... you know why it does not display anything
check that your list is indeed sorted by name before using regroup, or use a
```
{% regroup publisher|dictsort:"name" by name as pub_list %}
```
to be sure
If the length is '0', you have to make sure publisher is defined (has been initialized from the database), and sorted appropriately.
In other word, do you see anywhere (in your template or in the defined templates):
```
```
publisher = Publisher.objects.all().order_by("name")
```
```
?
(again, the order by name is important, to ensure your regroup tag works properly)