📜  无法访问静态文件中的样式表 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:13.537000             🧑  作者: Mango

代码示例1
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)