From 4befb3015c26810a68cfcf57e0cd8b062f56f1c5 Mon Sep 17 00:00:00 2001 From: Loic Bistuer Date: Tue, 10 Dec 2013 00:29:39 +0700 Subject: 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. --- docs/ref/settings.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/ref') 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. -- cgit v1.3