LoginSignup
3
1

More than 3 years have passed since last update.

【Django】'bootstrap4' is not a registered tag library.

Posted at

はじめに

formタグをcssで装飾したくてdjango-bootstrap4を用いようとしたのだが、本タイトルのようなエラーがでたので、対処方法を備忘録として投稿する。

対処方法

  1. django-bootstrap4をインストールする

$ pip install django-bootstrap4

  1. settings.pyのINSTALLED_APPSに追加する
settings.py
INSTALLED_APPS = [
    'django.contrib.admin',
    ...
    'bootstrap4'
]

おわりに

以下を参考。
https://github.com/monim67/django-bootstrap-datepicker-plus/issues/10

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1