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 |
29 | 30 |
Tags
- 조맹클래스101
- junny
- Migrate
- include
- 크로키
- TemplateSyntaxError
- 취미미술
- bootstrap4
- ModuleNotFoundError
- navbar
- 마이그레이션
- 조맹크로키
- pip install --upgrade pip
- 마이그레이트
- 블린이
- JavaScript
- Python
- Uncaught SyntaxError
- scotty
- error
- 오류
- You should consider upgrading
- Django
- 알리
- ValueError
Archives
- Today
- Total
목록include (1)
내가 하고 싶은 것들 중 하나

장고에서 myproject>templates>base.html의 body 부분에 네비게이션바를 작성하는 대신에 include 기능을 이용하는 방법 templates 디렉토리에 navbar.html 를 만든다. navbar.html에 네비게이션바에 해당하는 코드를 넣어준다. 부트스트랩에서 navbar 코드를 그대로 가져왔음 Navbar Home (current) Link Dropdown Action Another action Something else here Disabled Search base.html 태그와 태그 사이에 {% include "navbar.html" %}을 넣어준다. {% include "navbar.html" %} {% block content %} {% endblock %} incl..
웹 세상/django
2020. 5. 2. 22:08