What's the point of Django's collectstatic?

后端 未结 4 479
广开言路
广开言路 2020-11-29 19:14

This is probably a stupid question, but it\'s just not clicking in my head.

In Django, the convention is to put all of your static files (i.e css, js) specific to y

4条回答
  •  青春惊慌失措
    2020-11-29 19:37

    It's useful when there are multiple django apps within the site.

    collectstatic will then collect static files from all the apps in one place - so that it could be served up in a production environment.

提交回复
热议问题