neue Verzeichnissstruktur

This commit is contained in:
Christian Berg
2014-11-26 13:13:07 +01:00
parent daa35f5913
commit f34281089d
3372 changed files with 168 additions and 2544 deletions

View File

@@ -1,20 +0,0 @@
# -*- coding: utf-8 -*-
'''
Created on 23.05.2011
@author: christian
'''
from django.utils.html import strip_spaces_between_tags
class CompressHtmlMiddleware(object):
'''
This Middleware compresses the HTML Output at the End. It strips the Spaces
between Tags, an at the beginning and the end of the content.
'''
def process_response(self, request, response):
if 'text/html' in response['Content-Type']:
response.content = strip_spaces_between_tags(response.content)
response.content = response.content.strip()
return response