2011-10-14 05:34:56 +08:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
2011-01-20 12:47:47 +08:00
|
|
|
from django.http import HttpResponse
|
|
|
|
from django.shortcuts import get_object_or_404
|
2011-10-14 05:34:56 +08:00
|
|
|
|
|
|
|
from .models import Person
|
|
|
|
|
2011-01-20 12:47:47 +08:00
|
|
|
|
|
|
|
def get_person(request, pk):
|
|
|
|
person = get_object_or_404(Person, pk=pk)
|
|
|
|
return HttpResponse(person.name)
|