https://django-bootstrap4.readthedocs.io/en/latest/
(django bootstrap4 사용방법)
1. pip install django-bootstrap4
2. settings.py -> installed_apps ->'bootstrap4'
라이브러리를 사용하려면 특정라이브러리가 설치됐다고 알려주어야함.
3. {% load bootstrap4 %} : login.html에서 bootstap4 가져오기
4. {% bootstrap_form form %} 부트스트랩이 적용된 form
<input type="submit" class="~~~ col-6 mt-3">
mt= margin top 설정. mt-3기본 margin에 3배
col-6: 부모의 너비의 반. col-12는 부모의 너비
네이버 폰트( https://hangeul.naver.com/font).
<style>
@font-face{
font-family: 'NanumSquareR';
src: local('NanumSquareR'),
url("{% static 'fonts/NanumSquareR.otf' %}") format("opentype");
}
@font-face{
font-family: 'NanumSquareB';
src: local('NanumSquareB'),
url("{% static 'fonts/NanumSquareB.otf' %}") format("opentype");
}
@font-face{
font-family: 'NanumSquareEB';
src: local('NanumSquareEB'),
url("{% static 'fonts/NanumSquareEB.otf' %}") format("opentype");
}
@font-face{
font-family: 'NanumSquareL';
src: local('NanumSquareL'),
url("{% static 'fonts/NanumSquareL.otf' %}") format("opentype");
}
</style>
<body style="font-family:'NanumSquareR';">