diff options
| author | Tim Graham <timograham@gmail.com> | 2015-06-22 11:45:57 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-06-22 12:44:34 -0400 |
| commit | 252867ed2aaec3e57dda08243a4603c8bffa7bb2 (patch) | |
| tree | d1b836a34b4f27c1fd7ba610e6d54d6d64b8f47f | |
| parent | bb8f69e901b87f35219f2c404a2acfeb8d6c24df (diff) | |
[1.8.x] Fixed #25001 -- Doc'd caveat about collectstatic and removing INSTALLED_APPS.
Thanks aRkadeFR for the initial patch.
Backport of 5ae0dd6abf8f93b90c962e62b04c675fdd6ca755 from master
| -rw-r--r-- | docs/ref/contrib/staticfiles.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt index b728632671..df6759889f 100644 --- a/docs/ref/contrib/staticfiles.txt +++ b/docs/ref/contrib/staticfiles.txt @@ -46,6 +46,12 @@ resolution works: the file that is first found in one of the specified locations will be used. If you're confused, the :djadmin:`findstatic` command can help show you which files are found. +On subsequent ``collectstatic`` runs (if ``STATIC_ROOT`` isn't empty), files +are copied only if they have a modified timestamp greater than the timestamp of +the file in ``STATIC_ROOT``. Therefore if you remove an application from +:setting:`INSTALLED_APPS`, it's a good idea to use the :djadminopt:`--clear` +option in order to remove stale static files. + Files are searched by using the :setting:`enabled finders <STATICFILES_FINDERS>`. The default is to look in all locations defined in :setting:`STATICFILES_DIRS` and in the ``'static'`` directory of apps |
