from django.http import HttpResponse


# Create your views here.
def hello(request):
    return HttpResponse('<h1>hello world!</h1>')



# Create your views here.
from django.http import HttpResponse
from django.shortcuts import render_to_response


def hello(request):
    # return render_to_response('mysite/index.html', {})
    return HttpResponse('<h1>Hello world!</h1>')

测试 rest_framework