DB연동
1. DB 연결 설정 0) 클라이언트 라이브러리 설치 pip install mysqlclient 1) settings.py DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': '[DB 이름]', 'USER': '[DB 접속 ID]', 'PASSWORD': '[DB 접속 PW]', 'HOST': '[DB 서버 IP주소]', 'PORT': '[DB 서버 포트번호]', 'OPTIONS': { 'init_command': 'SET sql_mode="STRICT_TRANS_TABLES"' } } } 2) models.py from django.db import models # Create your models here. class Fr..