Skip to content

Commit c753afa

Browse files
committed
Updated readme to include AppSavvy Storage
1 parent 7cfe364 commit c753afa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,16 @@ The amount of time (in seconds) to cache the result of the check of the
187187
modification timestamp of a file. Disabled by default. Should be smaller
188188
than ``COMPRESS_REBUILD_TIMEOUT`` and ``COMPRESS_MINT_DELAY``.
189189

190+
What if I have my media spread through many apps?
191+
*************************************************
192+
193+
You can use the AppSavvyCompressorFileStorage, which tries to find media using the following order:
194+
195+
* First looks in your media folder as specified by MEDIA_PATH in your settings file.
196+
* Then it looks in every app /media folder in the same order as the apps are specified in your INSTALLED_APPS setting.
197+
* If none found then you get an error.
198+
199+
To use it, just change the setting 'COMPRESS_STORAGE' to 'compressor.storage.AppSavvyCompressorFileStorage' and you are done.
190200

191201
Dependencies
192202
************
@@ -206,3 +216,4 @@ Dependencies
206216
.. _BeautifulSoup: http://www.crummy.com/software/BeautifulSoup/
207217
.. _lxml: http://codespeak.net/lxml/
208218
.. _libxml2: http://xmlsoft.org/
219+

0 commit comments

Comments
 (0)