summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-02-09 15:35:35 -0500
committerTim Graham <timograham@gmail.com>2014-02-09 15:39:04 -0500
commit29345390b81a3bfce22af43617cabd0d08de3632 (patch)
treef313df61f243de563b58318bf7cdbe1eaff22c76 /docs
parente2f28572b745c6a8555b8bfd00df10c936c434c0 (diff)
Minor edits to new findstatic functionality; refs #19879.
Hopefully fixes a test failure on Jenkins.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/staticfiles.txt37
-rw-r--r--docs/releases/1.7.txt8
2 files changed, 21 insertions, 24 deletions
diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt
index 214128e2cd..79ce21ecda 100644
--- a/docs/ref/contrib/staticfiles.txt
+++ b/docs/ref/contrib/staticfiles.txt
@@ -163,7 +163,7 @@ output and just get the path names::
/home/polls.com/core/static/css/base.css
On the other hand, by setting the :djadminopt:`--verbosity` flag to 2, you can
-get all the directories on which it searched the relative paths::
+get all the directories which were searched::
$ python manage.py findstatic css/base.css --verbosity 2
Found 'css/base.css' here:
@@ -176,8 +176,7 @@ get all the directories on which it searched the relative paths::
.. versionadded:: 1.7
- The additional message of on which directories it searched the relative
- paths is new in Django 1.7.
+ The additional output of which directories were searched was added.
.. _staticfiles-runserver:
@@ -360,6 +359,21 @@ slightly different call:
{% static "images/hi.jpg" as myphoto %}
<img src="{{ myphoto }}" alt="Hi!" />
+Finders Module
+==============
+
+``staticfiles`` finders has a ``searched_locations`` attribute which is a list
+of directory paths in which the finders searched. Example usage::
+
+ from django.contrib.staticfiles import finders
+
+ result = finders.find('css/base.css')
+ searched_locations = finders.searched_locations
+
+.. versionadded:: 1.7
+
+The ``searched_locations`` attribute was added.
+
Other Helpers
=============
@@ -383,23 +397,6 @@ files:
.. _staticfiles-development-view:
-Finders Module
-==============
-
-``staticfiles`` finders has a ``searched_locations`` list with directory paths
-in which they search for the relative paths. Example usage::
-
- from django.contrib.staticfiles import finders
-
- result = finders.find('css/base.css')
- searched_locations = finders.searched_locations
-
-.. versionadded:: 1.7
-
-The ``get_searched_locations`` function is new in Django 1.7. Previously, we
-have to check the locations of our :setting:`STATICFILES_FINDERS` manually
-one by one.
-
Static file development view
----------------------------
diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt
index cd8732fa82..813e425f05 100644
--- a/docs/releases/1.7.txt
+++ b/docs/releases/1.7.txt
@@ -390,6 +390,10 @@ Minor features
See the :class:`~django.contrib.staticfiles.storage.ManifestStaticFilesStorage`
docs for more information.
+* :djadmin:`findstatic` now accepts verbosity flag level 2, meaning it will
+ show the relative paths of the directories it searched. See
+ :djadmin:`findstatic` for example output.
+
:mod:`django.contrib.syndication`
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -1051,10 +1055,6 @@ Miscellaneous
which does allow primary keys with value 0. It only forbids *autoincrement*
primary keys with value 0.
-* :djadmin:`findstatic` now accepts verbosity flag level 2, meaning it will
- show the directories on which it searched the relative paths. See
- :djadmin:`findstatic` for example output.
-
.. _deprecated-features-1.7:
Features deprecated in 1.7