存储与上传排错
collectstatic 后 CSS 哈希对不上
现象: 生产 WhiteNoise CompressedManifestStaticFilesStorage 500 或缺文件。
原因: 改了 theme/static/css/dist/styles.css 未重新 collect;或多个 worker 看到旧 staticfiles/。
解决: 重新 collectstatic --noinput 并 systemctl restart 全部 gunicorn worker。
权限拒绝下载
现象: 部长看不到申请人简历。
原因: user_can_download_file 按申请 scope:draft/withdrawn 对本部门 chair 也不可见;人才池有额外条件。
解决: 先确认申请状态与部门,不要把 R2 预签名随手放到公开模板。