Django项目没有读取我的静态css文件



我正在处理一个django项目,由于某种原因,style.css文件没有被读取。然而,我的静态图像正在发挥作用。不太确定问题是什么,我们非常感谢您的帮助。控制台和终端中也没有显示错误。。

链接到我的github存储库

https://github.com/Amanuel763/petwebsite

STATIC_URLSTATIC_ROOT添加到您的urls.py中。查看更多关于在开发过程中提供静态文件[Django-doc]的信息

from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
# ... the rest of your URLconf goes here ...
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

最新更新