django 静态文件


is the folder where every files uploaded with an FileField will go.


 is the folder where every static files will be stored after a collectstatic

The absolute path to the directory where collectstatic will collect static files for deployment.

If the staticfiles contrib app is enabled (default) the collectstatic management command will collect static files into this directory. See the howto on managing static files for more details about usage.


is the list of folder where Django will search for additional static files, in addition to each static folder of each app installed.
This setting defines the additional locations the staticfiles app will traverse if the FileSystemFinder finder is enabled, e.g. if you use the collectstatic or findstatic management command or use the static file serving view.


python collectstatic