[Django] #26583: Silence Static File Warnings added in #24890

28 views
Skip to first unread message

Django

unread,
May 5, 2016, 11:11:31 AM5/5/16
to django-...@googlegroups.com
#26583: Silence Static File Warnings added in #24890
--------------------------------------+--------------------
Reporter: thisjustin | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.staticfiles | Version: 1.9
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
Due to the changes introduced in
[https://code.djangoproject.com/ticket/24890] in 1.9.5 if you use an app
like Grappelli which overwrites portions of the admin you get numerous
warnings every time you run `collectstatic`. There should be an option to
silence these warnings since there are times where you would knowingly
want to overwrite files and don't wish to see the warnings.

Example of warnings:
{{{
Found another file with the destination path 'admin/js/jquery.init.js'. It
will be ignored since only the first encountered file is collected. If
this is not what you want, make sure every static file has a unique path.
Found another file with the destination path 'admin/js/calendar.js'. It
will be ignored since only the first encountered file is collected. If
this is not what you want, make sure every static file has a unique path.
Found another file with the destination path
'admin/js/prepopulate.min.js'. It will be ignored since only the first
encountered file is collected. If this is not what you want, make sure
every static file has a unique path.
Found another file with the destination path 'admin/js/inlines.min.js'. It
will be ignored since only the first encountered file is collected. If
this is not what you want, make sure every static file has a unique path.
Found another file with the destination path 'admin/js/actions.js'. It
will be ignored since only the first encountered file is collected. If
this is not what you want, make sure every static file has a unique path.
Found another file with the destination path 'admin/js/actions.min.js'. It
will be ignored since only the first encountered file is collected. If
this is not what you want, make sure every static file has a unique path.
Found another file with the destination path 'admin/js/core.js'. It will
be ignored since only the first encountered file is collected. If this is
not what you want, make sure every static file has a unique path.
Found another file with the destination path 'admin/js/collapse.min.js'.
It will be ignored since only the first encountered file is collected. If
this is not what you want, make sure every static file has a unique path.
Found another file with the destination path 'admin/js/inlines.js'. It
will be ignored since only the first encountered file is collected. If
this is not what you want, make sure every static file has a unique path.
Found another file with the destination path 'admin/js/prepopulate.js'. It
will be ignored since only the first encountered file is collected. If
this is not what you want, make sure every static file has a unique path.
Found another file with the destination path 'admin/js/collapse.js'. It
will be ignored since only the first encountered file is collected. If
this is not what you want, make sure every static file has a unique path.
Found another file with the destination path 'admin/js/timeparse.js'. It
will be ignored since only the first encountered file is collected. If
this is not what you want, make sure every static file has a unique path.
Found another file with the destination path 'admin/js/urlify.js'. It will
be ignored since only the first encountered file is collected. If this is
not what you want, make sure every static file has a unique path.
Found another file with the destination path 'admin/js/SelectFilter2.js'.
It will be ignored since only the first encountered file is collected. If
this is not what you want, make sure every static file has a unique path.
Found another file with the destination path 'admin/js/SelectBox.js'. It
will be ignored since only the first encountered file is collected. If
this is not what you want, make sure every static file has a unique path.
Found another file with the destination path
'admin/js/admin/RelatedObjectLookups.js'. It will be ignored since only
the first encountered file is collected. If this is not what you want,
make sure every static file has a unique path.
Found another file with the destination path
'admin/js/admin/DateTimeShortcuts.js'. It will be ignored since only the
first encountered file is collected. If this is not what you want, make
sure every static file has a unique path.
Found another file with the destination path
'admin/js/vendor/xregexp/xregexp.min.js'. It will be ignored since only
the first encountered file is collected. If this is not what you want,
make sure every static file has a unique path.
Found another file with the destination path 'admin/js/vendor/xregexp
/LICENSE-XREGEXP.txt'. It will be ignored since only the first encountered
file is collected. If this is not what you want, make sure every static
file has a unique path.
Found another file with the destination path
'admin/js/vendor/jquery/jquery.js'. It will be ignored since only the
first encountered file is collected. If this is not what you want, make
sure every static file has a unique path.
Found another file with the destination path
'admin/js/vendor/jquery/jquery.min.js'. It will be ignored since only the
first encountered file is collected. If this is not what you want, make
sure every static file has a unique path.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/26583>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 5, 2016, 1:19:04 PM5/5/16
to django-...@googlegroups.com
#26583: Add an option to silence collectstatic clashing files warnings
--------------------------------------+------------------------------------

Reporter: thisjustin | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.staticfiles | Version: 1.9
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by timgraham):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
* stage: Unreviewed => Accepted


Old description:

New description:

Due to the changes introduced in #24890 in 1.9, if you use an app like

--

Comment:

Switching management commands to use logging (#21429) might be one way to
solve this.

--
Ticket URL: <https://code.djangoproject.com/ticket/26583#comment:1>

Django

unread,
May 5, 2016, 3:47:47 PM5/5/16
to django-...@googlegroups.com
#26583: Add an option to silence collectstatic clashing files warnings
--------------------------------------+------------------------------------
Reporter: thisjustin | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.staticfiles | Version: 1.9
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by claudep):

You can silence those with verbosity=0, can't you?

--
Ticket URL: <https://code.djangoproject.com/ticket/26583#comment:2>

Django

unread,
Oct 6, 2018, 11:17:18 PM10/6/18
to django-...@googlegroups.com
#26583: Add an option to silence collectstatic clashing files warnings
--------------------------------------+------------------------------------
Reporter: Justin McCammon | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.staticfiles | Version: 2.1

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by specialorange):

* version: 1.9 => 2.1


Comment:

Yes, but doing so with `./manage.py collectstatic -v 0`

also would not provide the final print of the status of the collectstatic,
such as

`0 static files copied to '/Users/dejanew/Dropbox/dev/MST/server/static',
833 unmodified.`

There is a potential to change the level of the display to `2`, but that
would also be likely hidden for the majority of the users.

--
Ticket URL: <https://code.djangoproject.com/ticket/26583#comment:3>

Django

unread,
Nov 13, 2020, 7:30:24 PM11/13/20
to django-...@googlegroups.com
#26583: Add an option to silence collectstatic clashing files warnings
-------------------------------------+-------------------------------------
Reporter: Justin McCammon | Owner:
Type: | ryanhunter1836
Cleanup/optimization | Status: assigned

Component: contrib.staticfiles | Version: 2.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by ryanhunter1836):

* owner: nobody => ryanhunter1836
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/26583#comment:4>

Django

unread,
Nov 14, 2020, 10:24:25 PM11/14/20
to django-...@googlegroups.com
#26583: Add an option to silence collectstatic clashing files warnings
-------------------------------------+-------------------------------------
Reporter: Justin McCammon | Owner: Ryan
Type: | Hunter

Cleanup/optimization | Status: assigned
Component: contrib.staticfiles | Version: 2.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Ryan Hunter):

* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/26583#comment:5>

Django

unread,
Nov 19, 2020, 3:03:06 AM11/19/20
to django-...@googlegroups.com
#26583: Add an option to silence collectstatic clashing files warnings
-------------------------------------+-------------------------------------
Reporter: Justin McCammon | Owner: Ryan
Type: | Hunter
Cleanup/optimization | Status: assigned
Component: contrib.staticfiles | Version: 2.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/26583#comment:6>

Django

unread,
Oct 12, 2021, 3:39:00 AM10/12/21
to django-...@googlegroups.com
#26583: Add an option to silence collectstatic clashing files warnings
--------------------------------------+------------------------------------
Reporter: Justin McCammon | Owner: (none)
Type: Cleanup/optimization | Status: new

Component: contrib.staticfiles | Version: 2.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Mariusz Felisiak):

* owner: Ryan Hunter => (none)
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/26583#comment:7>

Django

unread,
Jun 18, 2025, 8:43:03 AMJun 18
to django-...@googlegroups.com
#26583: Add an option to silence collectstatic clashing files warnings
--------------------------------------+------------------------------------
Reporter: Justin McCammon | Owner: blighj
Type: Cleanup/optimization | Status: assigned
Component: contrib.staticfiles | Version: 2.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by blighj):

* needs_better_patch: 1 => 0
* owner: (none) => blighj
* status: new => assigned

Comment:

I don't know if after 9 years we want to change the behaviour still but if
we do, I've done up a patch that moves the messages to a higher verbosity
and includes a summary of conflicts as per Simon's suggestion.
If we don't want to change the behaviour we should probably mark this as
wontfix
--
Ticket URL: <https://code.djangoproject.com/ticket/26583#comment:8>

Django

unread,
Jul 26, 2025, 9:09:44 AMJul 26
to django-...@googlegroups.com
#26583: Increase vebosity at collectstatic warns for conflicting destination paths
-------------------------------------+-------------------------------------
Reporter: Justin McCammon | Owner: blighj
Type: | Status: assigned
Cleanup/optimization |
Component: contrib.staticfiles | Version: 2.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Clifford Gama):

* stage: Accepted => Ready for checkin
* summary: Add an option to silence collectstatic clashing files warnings
=>
Increase vebosity at collectstatic warns for conflicting destination
paths

--
Ticket URL: <https://code.djangoproject.com/ticket/26583#comment:9>

Django

unread,
Jul 26, 2025, 9:11:04 AMJul 26
to django-...@googlegroups.com
#26583: Increase the vebosity at which collectstatic warns for conflicting
destination paths
-------------------------------------+-------------------------------------
Reporter: Justin McCammon | Owner: blighj
Type: | Status: assigned
Cleanup/optimization |
Component: contrib.staticfiles | Version: 2.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Clifford Gama):

* summary:
Increase vebosity at collectstatic warns for conflicting destination
paths
=>
Increase the vebosity at which collectstatic warns for conflicting
destination paths

--
Ticket URL: <https://code.djangoproject.com/ticket/26583#comment:10>

Django

unread,
Aug 5, 2025, 10:37:55 AMAug 5
to django-...@googlegroups.com
#26583: Increase the vebosity at which collectstatic warns for conflicting
destination paths
-------------------------------------+-------------------------------------
Reporter: Justin McCammon | Owner: blighj
Type: | Status: closed
Cleanup/optimization |
Component: contrib.staticfiles | Version: 2.1
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce <42296566+sarahboyce@…>):

* resolution: => fixed
* status: assigned => closed

Comment:

In [changeset:"6142e3f347c6f9415165d385d3eba4211a052d96" 6142e3f]:
{{{#!CommitTicketReference repository=""
revision="6142e3f347c6f9415165d385d3eba4211a052d96"
Fixed #26583 -- Silenced individual clashing name warnings in
collectstatic's default verbosity.

Made collectstatic report individual destination conflicts only at
verbosity 2+.
Made verbosity level 1 report a summary count of skipped files.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26583#comment:11>
Reply all
Reply to author
Forward
0 new messages