原文:Error fetching command 'collectstatic': You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path. Command 'collectstatic' skipped

報錯現象 報錯解決 在 settings.py 中添加這一句話則可以解決 測試不在有問題 ...

2019-03-12 21:36 0 1173 推薦指數:

查看詳情

django的collectstaticSTATIC_ROOT用法

1. python manage.py collectstatic做了什么 一句話,把靜態文件收集到 STATIC_ROOT 中。 setting.py文件: python manage.py collectstatic在執行時,django默認會去查看 ...

Thu Mar 05 02:07:00 CST 2020 0 761
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM