Skip to content

jkb0o/django-staticfinders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

Filtered static finders for django staticfiles. When collectstatic is called, finder check each filename. If filename matches STATICFILES_INCLUDE and do not matches STATICFILES_EXLUDE then file will be copied, else skipped.

Install

Add to settings.py:

STATICFILES_FINDERS = (
    'staticfinders.FilteredFileSystemFinder',
    'staticfinders.FilteredAppDirectoriesFinder',
)
STATICFILES_INCLUDE = (
    '*.js',
    '*.css',
    '*.png',
    '*.jpg',
    '*.jpeg',
    '*.woff',
)
STATICFILES_EXCLUDE = (
    'templates*',
    'blocks*',
    'img/sprites/*/*.png'
)

About

Extend default django finders with filtered

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages