Mercurial > public > sg101
view gpp/templates/news/current_news.html @ 370:e9a066db3f54
Adding some try/except around some key points in the code to protect against some IntegrityErrors. We log when these happens but otherwise keep going. Tickets: #160 and #169.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 06 Mar 2011 00:40:50 +0000 |
parents | daa2916f5b34 |
children |
line wrap: on
line source
{% load url from future %} {% if stories %} <h2>Current News Stories</h2> {% for story in stories %} {% include 'news/story_summary.html' %} {% endfor %} <hr /> <p>For more news stories, check out our <a href="{% url 'news-index_page' %}">news archive</a>.</p> {% endif %}