summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatt Robenolt <matt@ydekproductions.com>2013-01-31 18:36:34 -0800
committerClaude Paroz <claude@2xlibre.net>2013-02-01 11:55:05 +0100
commit393c268e725f5b229ecb554f3fac02cfc250d2df (patch)
tree54691b840fb29a9a6fea7b126f48f3a1742132b5 /docs
parent56e553129f554f83c8e99ef3368544921dbd8a82 (diff)
Fixed #19715 -- Simplified findstatic output when verbosity set to 0
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/staticfiles.txt18
1 files changed, 14 insertions, 4 deletions
diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt
index a7540388bc..fa740f4e2c 100644
--- a/docs/ref/contrib/staticfiles.txt
+++ b/docs/ref/contrib/staticfiles.txt
@@ -112,19 +112,29 @@ Searches for one or more relative paths with the enabled finders.
For example::
$ python manage.py findstatic css/base.css admin/js/core.js
- /home/special.polls.com/core/static/css/base.css
- /home/polls.com/core/static/css/base.css
- /home/polls.com/src/django/contrib/admin/media/js/core.js
+ Found 'css/base.css' here:
+ /home/special.polls.com/core/static/css/base.css
+ /home/polls.com/core/static/css/base.css
+ Found 'admin/js/core.js' here:
+ /home/polls.com/src/django/contrib/admin/media/js/core.js
By default, all matching locations are found. To only return the first match
for each relative path, use the ``--first`` option::
$ python manage.py findstatic css/base.css --first
- /home/special.polls.com/core/static/css/base.css
+ Found 'css/base.css' here:
+ /home/special.polls.com/core/static/css/base.css
This is a debugging aid; it'll show you exactly which static file will be
collected for a given path.
+By setting the :djadminopt:`--verbosity` flag to 0, you can suppress the extra
+output and just get the path names::
+
+ $ python manage.py findstatic css/base.css --verbosity 0
+ /home/special.polls.com/core/static/css/base.css
+ /home/polls.com/core/static/css/base.css
+
.. _staticfiles-runserver:
runserver