Ticket #25001: 25001.diff

File 25001.diff, 1.1 KB (added by aRkadeFR, 9 years ago)

Patch documentation for staticfiles stale content

  • docs/ref/contrib/staticfiles.txt

    diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt
    index 140506c..6b4747a 100644
    a b collectstatic  
    4141
    4242Collects the static files into :setting:`STATIC_ROOT`.
    4343
    44 Duplicate file names are by default resolved in a similar way to how template
    45 resolution works: the file that is first found in one of the specified
    46 locations will be used. If you're confused, the :djadmin:`findstatic` command
    47 can help show you which files are found.
     44Duplicate file names are by default resolved by the file's modification time:
     45the file that is last modified in one of the specified locations will be used.
     46
     47.. note::
     48
     49        After deleting an application, it's recommended to use the
     50        :djadminopt:`--clear` option in order to remove the possible stale static
     51        files.
     52
     53If you're confused, the :djadmin:`findstatic` command can help show you which
     54files are found.
    4855
    4956Files are searched by using the :setting:`enabled finders
    5057<STATICFILES_FINDERS>`. The default is to look in all locations defined in
Back to Top