setting 文件配置
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
]
# STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATIC_URL = '/static/
注意STATICFILES_DIRS和STATIC_ROOT不能重复
urls 文件
urlpatterns = [
]+ static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)