<link rel="stylesheet" href="{% static 'css/font-awesome.css' %}">Did you forget to register or load this tag?
时间: 2024-03-27 13:36:04 浏览: 88
It seems that you are using Django template syntax to include a CSS file, but the static tag is not being recognized.
To fix this, make sure you have loaded the static files by including this line at the top of your template:
```
{% load static %}
```
Then, make sure that you have correctly configured the `STATIC_URL` setting in your Django settings file. For example:
```
STATIC_URL = '/static/'
```
Finally, use the `static` tag to include your CSS file:
```
<link rel="stylesheet" href="{% static 'css/font-awesome.css' %}">
```
阅读全文