Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- TMS
- 중복제거
- MSSQL
- Push
- advColumnGrid
- GIT
- Delphi
- python3
- templates
- get_object_or_404
- 백준
- delphi 10.3
- python 3.7
- dbadvgrid
- github
- 델파이
- declare
- blog
- pyhcarm
- anaconda3
- Visual Studio
- COMMIT
- Django
- rank
- hackerrank
- c#
- queryset
- pythonanywhere
- PyCharm
- HTML
Archives
- Today
- Total
목록block content (1)
DevHyun
[DevHyun's Blog] Django Template 확장하기(*재사용 가능하게끔 만들기)
장고걸스 코치들과 자원봉사자들의 수고로 번역된 글을 참고하였습니다. tutorial.djangogirls.org/ko Template 확장(template extending) 이란 웹사이트 안의 서로 다른 페이지에서 HTML의 일부를 동일하게 재사용 할 수 있도록 만드는 것입니다. 1. Blog/templates/Blog/base.html 생성 * base가 될 template 셋팅 {% load static %} Django Girls Blog {% for post in posts %} {{ post.published_date }} {{ post.title }} {{ post.text|linebreaksbr }} {% endfor %} 2. base.html의 Body를 재사용 가능하게끔 확장하기 *B..
Web/Django&Python Blog Projecct
2020. 10. 19. 19:08