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