summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAksel Ethem <aksel.ethem@gmail.com>2015-03-12 12:19:42 +0100
committerTim Graham <timograham@gmail.com>2015-03-12 09:24:02 -0400
commit8084a68f7844ee61bcc5798c7557e2c3b4770b8a (patch)
tree1c67992f45b94e47d442cd7b5d509897ee80beb8 /docs
parent3d55798e9839a561b98bea80f5a70df7c9049fa0 (diff)
[1.7.x] Fixed #24364 -- Doc'ed that ManifestStaticFileStorage shouldn't be used during testing.
Backport of b4d8b16e5109170614ba505e36f60c2ad64dafc2 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/staticfiles.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt
index 739e974b2f..6c175159af 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.