728x90
    
    
  반응형
    
    
    
  - template 및 extends 할 수 있는 뼈대html 만들기
    <div class="pragmatic_header">
        <div>
        <h1 class="pragmatic_logo">Pragmatic</h1>
        </div>
        <div>
            <span>span1</span>
            <span>span2</span>
            <span>span3</span>
        </div>
    </div>- 메인 App >templates > header.html 생성
<div class="pragmatic_footer">
    <div class="pragmatic_footer_button">
        <span>공지사항</span>
        |
        <span>제휴문의</span>
        |
        <span>소개</span>
    </div>
    <div style="margin-top: 1rem;">
        <h6 class="pragmatic_logo">Pragmatic</h6>
    </div>
</div>- 메인 App >templates > footer.html 생성
- accountapp 의 templates(.html) 폴더 생성 후 탬플릿 사용하기

- accountapp 밑에 templates 밑에 app이름과 동일한 accountapp이름의 폴더를 또 생성해주는 이유는 url설정 시 구분하기 쉽도록 하기 위함
반응형
    
    
    
  'Backend > Django' 카테고리의 다른 글
| django 06. static 설정 및 css 파일 분리 (0) | 2021.10.05 | 
|---|---|
| django 05. style, 구글 폰트, 네이버 글꼴을 통해 Header, Footer 꾸미기 (0) | 2021.10.05 | 
| django 03. 장고 template의 extends, include 구문과 render 함수 (0) | 2021.10.05 | 
| django 02. Git 활성화, 환경변수 분리, commit (0) | 2021.10.05 | 
| django 01. 첫 앱 시작, 그리고 기본적인 view 만들기 (0) | 2021.10.05 | 
