Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
djangoでcollectstaticを行う必要性は何ですか? ファイルを静的フォルダーにコピーして、サーバーにそのフォルダーを参照させることができないのはなぜですか? なぜそれが機能しないのですか?
快適?静的ファイルを手動でコピーすることは問題ありませんが、静的ファイルが保存されている複数の異なるフォルダーがあり、運用サーバーに展開している場合、各フォルダーに個別に移動するのははるかに面倒です。自動化されたタスクとして実行する代わりにそれらをコピーしcollectstaticて、作業を行います。
collectstatic