def test_findall(): results = findall() # print(results) for result in results: print( f'{result["no"]}:{result["name"]}:{result["reg_date"]}:{result["message"]}' )
def index(request): results = models.findall() data = {"guestbook01_list": results} return render(request, 'guestbook01/index.html', data)
def test_findall(): results = findall() for result in results: print( f"""{result["no"]}:{result["name"]}:{result["reg_date"]}:{result["message"]}""" )
def index(request): results = guestbookmodel.findall() data = {'guestbooklist': results} return render(request, 'guestbook01/index.html', data)
def index(request): results = models.findall() data = { "guestbook_list": results } # 받은 데이터를 emaillist_list 이걸로 보내겠다, 이러면 저거 findall로 만든 것들을 보내고, index.html 에서 표출 가능 return render(request, 'guestbook01/index.html', data)
def index(request): results = models.findall() data = { "results": results } return render(request, "guestbook01/index.html", data)
def index(request): results=models.findall() guestList={'guest_list': results} return render(request,'guestbook01/index.html',guestList)