Skip to content

Commit

Permalink
Remove django-compressor since our assets are minified by npm
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelboca committed Dec 1, 2023
1 parent cef0287 commit 92822ca
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 55 deletions.
1 change: 0 additions & 1 deletion .env.base
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
CONTACT_EMAIL_SENDER=<change me>
DJANGO_ADMINS=name1 <email1>, name2 <email2>
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1
DJANGO_COMPRESS_OFFLINE=true
DJANGO_CUSTOM_ASSETS_DOMAIN=<change me>
DJANGO_DEBUG=true
DJANGO_EMAIL_DEBUG=false
Expand Down
17 changes: 0 additions & 17 deletions foundation/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ def _parse_email_list(varname):
'sendemail',
'captcha',

# Asset pipeline
'compressor',

# CMS plugins
'djangocms_picture',
'djangocms_text_ckeditor',
Expand Down Expand Up @@ -311,7 +308,6 @@ def _parse_email_list(varname):
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'compressor.finders.CompressorFinder',
)

# Where else to find static files
Expand Down Expand Up @@ -438,19 +434,6 @@ def _parse_email_list(varname):
# CSP_REPORT_URI = env.get('DJANGO_CSP_REPORT_URI')
# CSP_REPORT_ONLY = True

COMPRESS_OFFLINE = env.get('DJANGO_COMPRESS_OFFLINE') == 'true'
COMPRESS_OFFLINE_CONTEXT = {
'STATIC_URL': STATIC_URL,
}

COMPRESS_PRECOMPILERS = (
('text/sass', 'lib.precompilers.SassFilter'),
)

COMPRESS_FILTERS = {
'css': ['compressor.filters.cssmin.CSSMinFilter']
}

CMS_CACHE_DURATIONS = {
'content': 60,
'menus': 3600,
Expand Down
26 changes: 0 additions & 26 deletions lib/precompilers.py

This file was deleted.

1 change: 0 additions & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ cssmin==0.2.0

Django==4.2.3
django-cms==3.11.4
django-compressor==4.4
django-countries==7.5.1
django-csp==3.7
django-environ==0.10.0
Expand Down
9 changes: 0 additions & 9 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ cssselect2==0.4.1
django==4.2.3
# via
# -r requirements.in
# django-appconf
# django-classy-tags
# django-cms
# django-csp
Expand All @@ -44,8 +43,6 @@ django==4.2.3
# djangocms-admin-style
# easy-thumbnails
# jsonfield
django-appconf==1.0.4
# via django-compressor
django-classy-tags==3.0.1
# via
# django-cms
Expand All @@ -56,8 +53,6 @@ django-cms==3.11.4
# djangocms-attributes-field
# djangocms-picture
# djangocms-text-ckeditor
django-compressor==4.4
# via -r requirements.in
django-countries==7.5.1
# via -r requirements.in
django-csp==3.7
Expand Down Expand Up @@ -186,8 +181,6 @@ pyasn1-modules==0.2.8
# via google-auth
pyparsing==3.0.9
# via packaging
rcssmin==1.1.1
# via django-compressor
redis==4.5.3
# via django-redis
reportlab==3.6.5
Expand All @@ -199,8 +192,6 @@ requests==2.31.0
# -r requirements.in
# google-api-core
# google-cloud-storage
rjsmin==1.2.1
# via django-compressor
rsa==4.7.2
# via google-auth
sgmllib3k==1.0.0
Expand Down
1 change: 0 additions & 1 deletion templates/general.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends "base.html" %}

{% load compress %}
{% load cms_tags %}
{% load menu_tags %}
{% load static %}
Expand Down

0 comments on commit 92822ca

Please sign in to comment.