fabiocaccamo / django-admin-interface

:superhero: :zap: django's default admin interface with superpowers - customizable themes, popup windows replaced by modals and many other features.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Confusing warnings on `./manage.py collectstatic`

helgihg opened this issue · comments

Python version
3.9.2

Django version
4.2.0

Package version
0.25.0

Current behavior (bug description)
When running ./manage.py collectstatic, a warning is produced:

Found another file with the destination path 'admin/js/cancel.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/popup_response.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.

These are presumably naming conflicts with django.contrib.admin.

Warnings such as these have a tendency to waste time for developers/admins, because the impact is entirely unclear, and when developers/admins (especially those who did not integrate django_admin_interface themselves) run into them in a scenario where there is some unrelated problem with static files or the admin interface, it runs them down a rabbit hole for no good reason.

Expected behavior
Running ./manage.py collectstatic should not produce the aforementioned warnings.

@helgihg unfortunately these logs are from the collectstatic command and there is no way to silence them, there is also a django ticket here.

If you find a way to silence these warnings I will re-open the issue.
In the meantime, I will add a note to the README to inform users about the warnings.