데이터를 db에 저장

    [pinterest clone (11)] POST 통신을 이용한 DB 데이터 저장

    1. Send POST data 2. Receive POST data 3. Save DB 1 hello_world.html {% extends 'base.html' %} {% block content %} Hello World List {% csrf_token %} {{ text }} {% endblock %} hello_world_input 받아서 text에 넣고 출력하기 views.py from django.http import HttpResponse from django.shortcuts import render def hello_world(request): if request.method == "POST": temp = request.POST.get('hello_world_input') retur..