summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhijeet <abhijeetviswa@gmail.com>2020-01-29 09:34:34 +0000
committerCarlton Gibson <carlton.gibson@noumenal.es>2020-01-29 10:36:52 +0100
commit7d48a4b703b24607ea77e8c1074d832dfdbdf832 (patch)
tree0198ad52606e1bd466c55153af6a2f2de100b931
parentb0207ac674949c67e2a81da57ea33b2c82d7b517 (diff)
[3.0.x] Fixed #31126 -- Doc'd STATICFILES_DIRS namespacing in static files how-to.
Backport of a45c8d7ad04b73e33b6989c3ffa2b8c51ae3e83b from master
-rw-r--r--docs/howto/static-files/index.txt3
-rw-r--r--docs/ref/settings.txt2
2 files changed, 5 insertions, 0 deletions
diff --git a/docs/howto/static-files/index.txt b/docs/howto/static-files/index.txt
index 7b8366e66e..89fec455b5 100644
--- a/docs/howto/static-files/index.txt
+++ b/docs/howto/static-files/index.txt
@@ -71,6 +71,9 @@ details on how ``staticfiles`` finds your files.
by putting those static files inside *another* directory named for the
application itself.
+ You can namespace static assets in :setting:`STATICFILES_DIRS` by
+ specifying :ref:`prefixes <staticfiles-dirs-prefixes>`.
+
.. _serving-static-files-in-development:
Serving static files during development
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
index cb5f166628..72587618e6 100644
--- a/docs/ref/settings.txt
+++ b/docs/ref/settings.txt
@@ -3324,6 +3324,8 @@ your additional files directory(ies) e.g.::
Note that these paths should use Unix-style forward slashes, even on Windows
(e.g. ``"C:/Users/user/mysite/extra_static_content"``).
+.. _staticfiles-dirs-prefixes:
+
Prefixes (optional)
~~~~~~~~~~~~~~~~~~~