All pastes #120122 Raw Edit

Mine

public text v1 · immutable
·published 2006-08-07 04:47 UTC
rendered paste body
def detail(request, post_id):
    try:
        p = Post.objects.get(pk=post_id)
    except Post.DoesNotExist:
        raise Http404
    return render_to_response('blog/detail.html', {'post': p})