viewflow / django-material

Material Design for Django

Home Page:http://viewflow.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Theme static files not overwriting the the default ones

variable opened this issue · 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?

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.

commented

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