1. Jay Baird
  2. Ochs

Source

Ochs / news / views.py

1
2
3
4
5
6
7
8
9
from django.template import Context, loader
from django.http import HttpResponse

def story_view(request, story):
    template = loader.get_template('news/story.html')
    context = Context({
        'story': story,
    })
    return HttpResponse(template.render(context))