TemplateSyntaxError at /welcome/ 'bootstrap4' is not a registered tag library. Must be one of:
时间: 2024-05-10 22:13:59 浏览: 6
This error occurs when Django is unable to find the specified tag library. In this case, it seems that the 'bootstrap4' tag library is not registered.
To fix this error, you can try the following steps:
1. Make sure that the 'bootstrap4' library is installed in your Django project. You can install it using pip:
```
pip install django-bootstrap4
```
2. Ensure that the 'bootstrap4' library is included in your INSTALLED_APPS setting in the project's settings.py file:
```
INSTALLED_APPS = [
...
'bootstrap4',
...
]
```
3. If you have made changes to your settings.py file, make sure to restart your Django development server for the changes to take effect.
Hope this helps! Let me know if you have any other questions.