From fee18ce415cd817c20f64009600b0c7158353974 Mon Sep 17 00:00:00 2001 From: Aksel Ethem Date: Thu, 12 Mar 2015 12:19:42 +0100 Subject: [PATCH] [1.8.x] Fixed #24364 -- Doc'ed that ManifestStaticFileStorage shouldn't be used during testing. Backport of b4d8b16e5109170614ba505e36f60c2ad64dafc2 from master --- AUTHORS | 1 + docs/ref/contrib/staticfiles.txt | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/AUTHORS b/AUTHORS index 1eee10dabbc..bc9b71deb85 100644 --- a/AUTHORS +++ b/AUTHORS @@ -17,6 +17,7 @@ answer newbie questions, and generally made Django that much better: Ahmad Al-Ibrahim ajs Akis Kesoglou + Aksel Ethem alang@bright-green.com Alasdair Nicol Albert Wang diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt index 57f35877d7c..b728632671b 100644 --- a/docs/ref/contrib/staticfiles.txt +++ b/docs/ref/contrib/staticfiles.txt @@ -298,6 +298,12 @@ hashed names for all processed files in a file called ``staticfiles.json``. This happens once when you run the :djadmin:`collectstatic` management command. +Due to the requirement of running :djadmin:`collectstatic`, this storage +typically shouldn't be used when running tests as ``collectstatic`` isn't run +as part of the normal test setup. During testing, ensure that the +:setting:`STATICFILES_STORAGE` setting is set to something else like +``'django.contrib.staticfiles.storage.StaticFilesStorage'`` (the default). + .. method:: storage.ManifestStaticFilesStorage.file_hash(name, content=None) The method that is used when creating the hashed name of a file.