diff options
Diffstat (limited to 'app/src/views.py')
-rw-r--r-- | app/src/views.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/src/views.py b/app/src/views.py new file mode 100644 index 0000000..f3803b9 --- /dev/null +++ b/app/src/views.py @@ -0,0 +1,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)) + |