mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #21581 -- Fixed a number of issues with collectstatic.
When STATIC_ROOT wasn't set, collectstatic --clear would delete every files within the current directory and its descendants. This patch makes the following changes: Prevent collectstatic from running if STATIC_ROOT isn't set. Fixed an issue that prevented collectstatic from displaying the destination directory. Changed the warning header to notify when the command is run in dry-run mode.
This commit is contained in:
parent
4d8d76e7a8
commit
4befb3015c
6 changed files with 45 additions and 26 deletions
|
@ -2535,7 +2535,7 @@ Settings for :mod:`django.contrib.staticfiles`.
|
|||
STATIC_ROOT
|
||||
-----------
|
||||
|
||||
Default: ``''`` (Empty string)
|
||||
Default: ``None``
|
||||
|
||||
The absolute path to the directory where :djadmin:`collectstatic` will collect
|
||||
static files for deployment.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue