Loading docs/howto/static-files/index.txt +1 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ details on how ``staticfiles`` finds your files. Now we *might* be able to get away with putting our static files directly in ``my_app/static/`` (rather than creating another ``my_app`` subdirectory), but it would actually be a bad idea. Django will use the last static file it finds whose name matches, and if you had a static file first static file it finds whose name matches, and if you had a static file with the same name in a *different* application, Django would be unable to distinguish between them. We need to be able to point Django at the right one, and the easiest way to ensure this is by *namespacing* them. That is, Loading docs/ref/settings.txt +3 −1 Original line number Diff line number Diff line Loading @@ -2564,7 +2564,9 @@ various locations. The default will find files stored in the :setting:`STATICFILES_DIRS` setting (using ``django.contrib.staticfiles.finders.FileSystemFinder``) and in a ``static`` subdirectory of each app (using ``django.contrib.staticfiles.finders.AppDirectoriesFinder``) ``django.contrib.staticfiles.finders.AppDirectoriesFinder``). If multiple files with the same name are present, the first file that is found will be used. One finder is disabled by default: ``django.contrib.staticfiles.finders.DefaultStorageFinder``. If added to Loading Loading
docs/howto/static-files/index.txt +1 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ details on how ``staticfiles`` finds your files. Now we *might* be able to get away with putting our static files directly in ``my_app/static/`` (rather than creating another ``my_app`` subdirectory), but it would actually be a bad idea. Django will use the last static file it finds whose name matches, and if you had a static file first static file it finds whose name matches, and if you had a static file with the same name in a *different* application, Django would be unable to distinguish between them. We need to be able to point Django at the right one, and the easiest way to ensure this is by *namespacing* them. That is, Loading
docs/ref/settings.txt +3 −1 Original line number Diff line number Diff line Loading @@ -2564,7 +2564,9 @@ various locations. The default will find files stored in the :setting:`STATICFILES_DIRS` setting (using ``django.contrib.staticfiles.finders.FileSystemFinder``) and in a ``static`` subdirectory of each app (using ``django.contrib.staticfiles.finders.AppDirectoriesFinder``) ``django.contrib.staticfiles.finders.AppDirectoriesFinder``). If multiple files with the same name are present, the first file that is found will be used. One finder is disabled by default: ``django.contrib.staticfiles.finders.DefaultStorageFinder``. If added to Loading