django (1) 썸네일형 리스트형 Django http When a page is requested, Django creates an HttpRequest object that contains metadata about the request. Then Django loads the appropriate view, passing the HttpRequest as the first argument (request of index function below) to the view function. Each view is responsible for returning an HttpResponse object. # in views.py from djangp.http import HttpResponse def index(request): return HttpRespon.. 이전 1 다음