summaryrefslogtreecommitdiff
path: root/app/src/views.py
blob: f3803b91f91bf318010cb955e2b371cf97ceca3b (plain)
1
2
3
4
5
6
7
8
from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext
from .models import Entry

def detail(request, slug):
    obj = get_object_or_404(Entry, slug__exact=slug)
    return render_to_response('details/src_entry.html', {'object': obj}, context_instance=RequestContext(request))