bootstrap 설치
$ pip install django-bootstrap4
settings.py의 INSTALLED_APPS에 ‘bootstrap4’ 추가
INSTALLED_APPS = [
'bootstrap4',
]
base.html에 bootstrap CDN 코드 삽입
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
{% load bootstrap4 %}
추가