Ticket #20634: 20634.diff

File 20634.diff, 1.6 KB (added by Tim Graham, 11 years ago)
  • docs/howto/static-files/index.txt

    diff --git a/docs/howto/static-files/index.txt b/docs/howto/static-files/index.txt
    index 3668c5d..db8bd38 100644
    a b details on how ``staticfiles`` finds your files.  
    6868    Now we *might* be able to get away with putting our static files directly
    6969    in ``my_app/static/`` (rather than creating another ``my_app``
    7070    subdirectory), but it would actually be a bad idea. Django will use the
    71     last static file it finds whose name matches, and if you had a static file
     71    first static file it finds whose name matches, and if you had a static file
    7272    with the same name in a *different* application, Django would be unable to
    7373    distinguish between them. We need to be able to point Django at the right
    7474    one, and the easiest way to ensure this is by *namespacing* them. That is,
  • docs/ref/settings.txt

    diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
    index 897af27..902eefa 100644
    a b various locations.  
    25642564The default will find files stored in the :setting:`STATICFILES_DIRS` setting
    25652565(using ``django.contrib.staticfiles.finders.FileSystemFinder``) and in a
    25662566``static`` subdirectory of each app (using
    2567 ``django.contrib.staticfiles.finders.AppDirectoriesFinder``)
     2567``django.contrib.staticfiles.finders.AppDirectoriesFinder``). If multiple
     2568files with the same name are present, the first file that is found will be
     2569used.
    25682570
    25692571One finder is disabled by default:
    25702572``django.contrib.staticfiles.finders.DefaultStorageFinder``. If added to
Back to Top