jezdez / django-staticfiles

[Unmaintained] A Django app that provides helpers for serving static files, used in Django and Pinax.

Home Page:http://django-staticfiles.readthedocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ordering of directories listed in STATICFILES_DIRS is not preserved

zbyte64 opened this issue · comments

When the directories are loaded into the FileSystemFinder object, it adds it to a set which does not preserve the order in which they are added. Consequently, when looking for files in the FileSystemFinder class, they are not necessarily looked up in the order specified in the settings file. If two directories listed in STATICFILES_DIRS contain the same file, it is not obvious to the programmer which will be chosen and there is no easy way for the programmer to specify (inherit filesystemfinder and overide in the settings seems to be the only way). I know that in the past this was not the case.

Ah, good catch, indeed.

Preserve order of STATICFILES_DIRS locations. Closed by 37d4996. Thanks, zbyte64.