How to deploy static files¶
Ver también
For an introduction to the use of django.contrib.staticfiles
, see
How to manage static files (e.g. images, JavaScript, CSS).
Serving static files in production¶
The basic outline of putting static files into production consists of two
steps: run the collectstatic
command when static files change, then
arrange for the collected static files directory (STATIC_ROOT
) to be
moved to the static file server and served. Depending the staticfiles