diff --git a/project/settings.py b/project/settings.py
index f3e69e23..fe902536 100644
--- a/project/settings.py
+++ b/project/settings.py
@@ -44,6 +44,7 @@ INSTALLED_APPS = [
] + [
'anymail',
'active_link',
+ 'compressor',
'django_filters',
'polymorphic_tree',
'polymorphic',
@@ -161,6 +162,11 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'web/build'),
]
+STATICFILES_FINDERS = [
+ 'django.contrib.staticfiles.finders.FileSystemFinder',
+ 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
+ 'compressor.finders.CompressorFinder',
+]
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
@@ -272,6 +278,8 @@ INSTAGRAM_RESULTS_PATH = 'media/instagram/results/'
DATA_UPLOAD_MAX_MEMORY_SIZE = 20242880
+COMPRESS_ENABLED = True
+
try:
from .local_settings import *
except ImportError:
diff --git a/project/templates/lilcity/index.html b/project/templates/lilcity/index.html
index fb449534..30b5541a 100644
--- a/project/templates/lilcity/index.html
+++ b/project/templates/lilcity/index.html
@@ -1,5 +1,6 @@
{% load static %}
{% load setting from settings %}
+{% load compress %}
@@ -31,7 +32,11 @@
{% comment %} {% endcomment %}
-
+
+ {% compress css %}
+
+ {% endcompress %}
+