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 |
31 |
Tags
- navbar
- 조맹클래스101
- ValueError
- 블린이
- scotty
- pip install --upgrade pip
- Migrate
- ModuleNotFoundError
- include
- JavaScript
- TemplateSyntaxError
- bootstrap4
- Uncaught SyntaxError
- 알리
- 마이그레이트
- 마이그레이션
- 취미미술
- junny
- 조맹크로키
- Python
- Django
- You should consider upgrading
- 크로키
- error
- 오류
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