import re FIND_SCRIPT_TAGS = re.compile(r'()', re.DOTALL) class ScriptsAtBottomMiddleware(object): """Finds all tags