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
- junny
- bootstrap4
- 크로키
- error
- You should consider upgrading
- include
- 마이그레이트
- 마이그레이션
- JavaScript
- ValueError
- 알리
- 취미미술
- Python
- 조맹크로키
- pip install --upgrade pip
- 블린이
- Migrate
- TemplateSyntaxError
- 오류
- Uncaught SyntaxError
- navbar
- 조맹클래스101
- scotty
- Django
- ModuleNotFoundError
Archives
- Today
- Total
내가 하고 싶은 것들 중 하나
[에러 해결] TemplateSyntaxError 'bootstarap4' is not registered tag library. 본문
웹 세상/django
[에러 해결] TemplateSyntaxError 'bootstarap4' is not registered tag library.
여러가지이야기 2020. 4. 26. 21:32TemplateSyntaxError at /community/
'bootstrap4' is not a registered tag library. Must be one of:
admin_list
admin_modify
admin_static
...
문제 상황
python manage.py runserver
-
런서버를 했는데 비쥬얼스튜디오 터미널 창에 ``ModuleNotFoundError: No module named 'bootstrap4' `이라고 떴다.
-
그리고 url도 뜨지 않는다.
해결 과정
- 구글링하면서 필요한 코드들을 입력해봤다.
python -m pip install bootstrap4
- bootstrap4를 설치하고 런서버를 하니까 이제 서버는 뜨는데 community/로 들어가면 templatesyntaxerror가 뜬다.
- 터미널 창을 보니
KeyError: 'bootstrap4'
라는 글자도 보인다.

pip install django_forms_bootstrap
- 이것도 깔아보라는 말이 있어서.. 깔아봤는데 여전히 해결이 안된다.
- 혹시 앱추가가 안되어 있나 해서 settins.py에 INSTALLED_APPS를 봤는데 bootstrap4 앱 추가를 잘해놨었다.
- 아래 코드를 입력했더니 해결!!! 얼마 후 같은 오류를 만나서 아래 코드를 바로 입력했더니 깔끔하게 해결되었다.
pip3 install django-bootstrap4
'웹 세상 > django' 카테고리의 다른 글
Model 설정할 때 NameError가 뜬다면? (0) | 2020.05.06 |
---|---|
jquery 다운받아 사용하기 (0) | 2020.05.05 |
pip install --upgrade pip (0) | 2020.05.04 |
네비게이션바 include 하기 (0) | 2020.05.02 |
{% empty %} 템플릿 태그 (1) | 2020.04.27 |