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