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:
parent
1afcd6bf99
commit
6aab3a4145
3 changed files with 7 additions and 52 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue