summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLoic Bistuer <loic.bistuer@sixmedia.com>2013-12-10 00:29:39 +0700
committerTim Graham <timograham@gmail.com>2013-12-31 14:58:49 -0500
commit4befb3015c26810a68cfcf57e0cd8b062f56f1c5 (patch)
tree52909117010247223190bf2112bcaf7b0926d3f2 /docs
parent4d8d76e7a89858932b6f4f280a0ebf4cf94ab4b7 (diff)
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.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/settings.txt2
-rw-r--r--docs/releases/1.6.2.txt5
2 files changed, 6 insertions, 1 deletions
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
index e4dfa7fbfe..0fa463ebb9 100644
--- a/docs/ref/settings.txt
+++ b/docs/ref/settings.txt
@@ -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.
diff --git a/docs/releases/1.6.2.txt b/docs/releases/1.6.2.txt
index 41bc86e906..6043d21815 100644
--- a/docs/releases/1.6.2.txt
+++ b/docs/releases/1.6.2.txt
@@ -14,3 +14,8 @@ Bug fixes
* Fixed a crash when executing the :djadmin:`changepassword` command when the
user object representation contained non-ASCII characters (#21627).
+
+* The :djadmin:`collectstatic` command will raise an error rather than
+ default to using the current working directory if :setting:`STATIC_ROOT` is
+ not set. Combined with the ``--clear`` option, the previous behavior could
+ wipe anything below the current working directory.