Skip to content

Commit

Permalink
[1.7.x] Fixed #24364 -- Doc'ed that ManifestStaticFileStorage shouldn…
Browse files Browse the repository at this point in the history
…'t be used during testing.

Backport of b4d8b16 from master
  • Loading branch information
aethemba authored and timgraham committed Mar 12, 2015
1 parent 3d55798 commit 8084a68
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ answer newbie questions, and generally made Django that much better:
Roberto Aguilar <roberto@baremetal.io>
ajs <adi@sieker.info>
Akis Kesoglou <akiskesoglou@gmail.com>
Aksel Ethem <aksel.ethem@gmail.com>
alang@bright-green.com
A S Alam <aalam@users.sf.net>
Andi Albrecht <albrecht.andi@gmail.com>
Expand Down
6 changes: 6 additions & 0 deletions docs/ref/contrib/staticfiles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8084a68

Please sign in to comment.