diff --git a/boards/middlewares.py b/boards/middlewares.py --- a/boards/middlewares.py +++ b/boards/middlewares.py @@ -1,8 +1,6 @@ from django.shortcuts import redirect from boards import utils from boards.models import Ban -from django.utils.html import strip_spaces_between_tags -from django.conf import settings RESPONSE_CONTENT_TYPE = 'Content-Type' @@ -28,18 +26,3 @@ class BanMiddleware: ban = bans[0] if not ban.can_read: return redirect('banned') - - -class MinifyHTMLMiddleware(object): - def process_response(self, request, response): - try: - compress_html = settings.COMPRESS_HTML - except AttributeError: - compress_html = False - - if RESPONSE_CONTENT_TYPE in response\ - and TYPE_HTML in response[RESPONSE_CONTENT_TYPE]\ - and compress_html: - response.content = strip_spaces_between_tags( - response.content.strip()) - return response \ No newline at end of file diff --git a/boards/templates/boards/base.html b/boards/templates/boards/base.html --- a/boards/templates/boards/base.html +++ b/boards/templates/boards/base.html @@ -2,16 +2,13 @@ {% load i18n %} {% load l10n %} {% load static from staticfiles %} -{% load compress %} - {% compress css %} - - - - {% endcompress %} + + + @@ -44,12 +41,10 @@ {% block content %}{% endblock %} -{% compress js %} - - - - -{% endcompress %} + + + +