{% comment %} What's this file (post_list.html) for? There's no view that uses it. Is it supposed to serve as an example of how to make a template that lists posts? Is that its purpose? It seems so project-specific (rather than app-specific). {% endcomment %} {% extends "base.html" %} {% load bootstrap_pagination %} {% block before_headline %} Submissions {% endblock %} {% block content %}
{% for post in object_list %}
{% if post.image %} {% endif %}

{{ post.title }}

{{ post.blurb|safe }}
  • {{ post.pub_date|date:"M j, Y" }}
  • {% if post.category %}
  • {{ post.category }}
  • {% endif %} {% if user.is_staff %}
  • {% endif %}
{% endfor %}
{% bootstrap_paginate page_obj range=10 %}
{% include "sidebar.html" %}
{% endblock %}