From b4ad4c2541a9bb6d7ce2704d2f7fae6aeb642cbb Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 20 Oct 2017 12:23:58 +0200 Subject: Use django-compressor to compress CSS and JS - switch to html5 page declaration --- example_project/settings.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'example_project') diff --git a/example_project/settings.py b/example_project/settings.py index 6ca8cb5fc..90991ebd5 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -36,6 +36,12 @@ STATICFILES_DIRS = ( ROOT_PATH + "../static/", ) +STATICFILES_FINDERS = ( + 'django.contrib.staticfiles.finders.FileSystemFinder', + 'django.contrib.staticfiles.finders.AppDirectoriesFinder', + 'compressor.finders.CompressorFinder', +) + ODT_TEMPLATE = ROOT_PATH + "../ishtar_common/static/template.odt" LOGIN_REDIRECT_URL = "/" + URL_PATH @@ -155,6 +161,7 @@ INSTALLED_APPS = [ 'archaeological_warehouse', 'archaeological_finds', 'ajax_select', + 'compressor', # 'debug_toolbar', ] -- cgit v1.2.3