https://github.com/zgr3doo/customfinder
Custom static file finder for django
https://github.com/zgr3doo/customfinder
Last synced: 6 months ago
JSON representation
Custom static file finder for django
- Host: GitHub
- URL: https://github.com/zgr3doo/customfinder
- Owner: zgr3doo
- Created: 2016-03-31T12:39:58.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-31T12:43:19.000Z (about 10 years ago)
- Last Synced: 2024-12-29T07:27:05.011Z (over 1 year ago)
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Customfinder
Custom static file finder for Django
This is extended version of FileSystemFinder static finder which allows you to exclude certain files or locations
To install it just copy this folder into your project as an app and include it in your INSTALLED_APPS
include it in STATICFILES_FINDERS remember to comment out 'django.contrib.staticfiles.finders.FileSystemFinder' as this one will replace it
STATICFILES_FINDERS = [
# 'django.contrib.staticfiles.finders.FileSystemFinder',
'customfinder.finder.CustomFinder',
and add this extra BLACKLIST_FILES list which will include all files which should be excluded from collectstatic
BLACKLIST_FILES = [
'bower_components/font-awesome/scss',
'bower_components/font-awesome/less',
'bower_components/font-awesome/bower.json',
]