简体   繁体   English

关于从 pythonanywhere 部署的 Django 和 static 文件

[英]About Django and static files in deployment from pythonanywhere

what can I do if I want to collectstatic again in pythonanywhere?如果我想在 pythonanywhere 中再次收集静态,我该怎么办? I did it because I remove oneline in my remote repository and when I collectstatic it didn't work (new styles don't apply) so what can I do?我这样做是因为我在远程存储库中删除了 oneline 并且当我 collectstatic 它不起作用(新的 styles 不适用)所以我该怎么办?

I'm not an speaker of English.我不是说英语的人。

You should check whitenoise.你应该检查白噪声。 It helps in maintaining static files in deployment in django.它有助于维护 django 中部署的 static 文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM