django-material icon indicating copy to clipboard operation
django-material copied to clipboard

Theme static files not overwriting the the default ones

Open variable opened this issue 4 years ago • 2 comments

I know quite a few people reported the same warning message:

Found another file with the destination path 'material/imgs/sidenav.svg'. 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 'material/imgs/background.svg'. 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 'material/css/materialize.frontend.min.css'. 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 'material/css/materialize.frontend.css'. 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 'material/css/materialize.forms.css'. 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 'material/css/materialize.frontend.print.css'. 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 'material/css/materialize.css'. 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.
0 static files copied to '/srv/www/pmas/public-www/static', 285 unmodified.

But I am more concerned about the 0 static files copied, obviously the theme static files are not collected due to whatever reason. I have compared the static files from the server against the default theme and they are identical. I have made sure the theme is above the material app in INSTALLED_APPS

Any ideas please?

variable avatar Mar 17 '21 22:03 variable

Digging a bit deeper this is just Django's problem, it's using the modification date to see if file has changed, but in my case the dates are the same in different themes so collectstatic didn't pick them up.

The only fix I could do is adding --clear to collectstatic to force refresh.

variable avatar Mar 18 '21 00:03 variable

Isn’t the problem that you need to have this app higher in INSTALLED_APPS to have its static files or templates found first?

merwok avatar Jun 04 '21 19:06 merwok