#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:

> 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.
> }}}

New description:

 Due to the changes introduced in #24890 in 1.9, 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.
 }}}

--

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 <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.d9c83189bb50fdbfc1a8d4165bfb07d1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to