mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #24364 -- Doc'ed that ManifestStaticFileStorage shouldn't be used during testing.
This commit is contained in:
parent
f0f5212624
commit
b4d8b16e51
2 changed files with 7 additions and 0 deletions
|
@ -285,6 +285,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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue