반응형

Project/[장고&파이썬] 블로그 프로젝트 3

2. 템플릿 상속_반복되는 html을 base.html에 담기

템플릿 상속이란? 1. 반복되는 html 내용(ex: Navbar, CDN)을 base.html에 담고 2. 해당 html 내용이 필요한 html 에서 이를 불러온다. 1. templates 폴더에 base.html 생성 2. base.html 에 중복되는 코드를 넣어준다. {% block contents %} {% endblock %} base.html {% load static %} Toggle navigation Home Pastime PostPastime Place PostPlace Music PostMusic Photo About Me {% block contents %} {% endblock %} Copyright 2015. All rights reserved. Theme made by MOO..

1. Django 부트스트랩 템플릿 vscode html 적용하기 | static에 js, css 넣기

1. 사용하는 툴에 맞는 템플릿 구글링 본인은 vscode, django, html 키워드 활용 https://www.mooz.reviews/renda-clean-blog-bootstrap-theme/ Renda - Clean Blog Bootstrap Template by MOOZ Reviews With the minimalistic, elegant and stunning design bootstrap blog template Renda gives you a gorgeous base to present your favourite articles and images. Beautiful social sharing buttons, elegant slider, carefully crafted elements ..

0. 블로그 프로젝트 기술 구상, 장고 기본환경 세팅

블로그 프로젝트 기술 명세 기능 상세 기능 기능 설명 요구사항 Post 글 등록 1. 등록 후 리스트 페이지로 이동 2. 등록 후 Data Base에 저장 1. views 함수 2. model 등록 3. forms.py 이용 글 리스트(main) 1. DB의 모든 글 불러오기 2. View Detail 버튼을 통해 상세 페이지로 이동 3. 제목, 날짜만 보여주기 1. for문 2. detail html 생성, 버튼 링크 연결 글 수정 1. detail html 에서 edit 버튼으로 edit 페이지로 이동 2. 글 수정 기능 글 상세 각 id url로 객체 받아오기 모델 구성-title, pub_date, author, content Photo 사진 등록 1. 등록 후 리스트 페이지로 이동 2. 등록 후..

반응형