From 393c268e725f5b229ecb554f3fac02cfc250d2df Mon Sep 17 00:00:00 2001 From: Matt Robenolt Date: Thu, 31 Jan 2013 18:36:34 -0800 Subject: Fixed #19715 -- Simplified findstatic output when verbosity set to 0 --- docs/ref/contrib/staticfiles.txt | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'docs') 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 -- cgit v1.3