Added a view for looking at an individual news entry. It's ugly, one of you artsy people should make it less so :)

This commit is contained in:
Greg Taylor 2007-07-26 15:50:24 +00:00
parent 1afcd6bf99
commit 6aab3a4145
3 changed files with 7 additions and 52 deletions

View file

@ -12,10 +12,11 @@ def show_news(request, entry_id):
"""
Show an individual news entry.
"""
#news_entries = NewsEntry.objects.all().order_by('-date_posted')[:10]
news_entry = get_object_or_404(NewsEntry, id=entry_id)
pagevars = {
"page_title": "News Entry",
"news_entry": news_entry
}
context_instance = RequestContext(request)