From 8080261aa7ba64b75a161aa152493b815c437044 Mon Sep 17 00:00:00 2001 From: David Baumgold Date: Tue, 20 May 2014 13:27:47 -0400 Subject: [PATCH 1/2] generate raw URLs that are not rewritten by static_replace --- .../templates/static_content.html | 8 +++---- lms/templates/textannotation.html | 24 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/common/djangoapps/pipeline_mako/templates/static_content.html b/common/djangoapps/pipeline_mako/templates/static_content.html index 6efcba7ced..aa8ddd7b87 100644 --- a/common/djangoapps/pipeline_mako/templates/static_content.html +++ b/common/djangoapps/pipeline_mako/templates/static_content.html @@ -3,19 +3,19 @@ from staticfiles.storage import staticfiles_storage from pipeline_mako import compressed_css, compressed_js %> -<%def name='url(file)'><% +<%def name='url(file, raw=False)'><% try: url = staticfiles_storage.url(file) except: url = file -%>${url} +%>${url}${"?raw" if raw else ""} -<%def name='css(group)'> +<%def name='css(group, raw=False)'> % if settings.FEATURES['USE_DJANGO_PIPELINE']: ${compressed_css(group)} % else: % for filename in settings.PIPELINE_CSS[group]['source_filenames']: - + % endfor %endif diff --git a/lms/templates/textannotation.html b/lms/templates/textannotation.html index accd8dffa4..9a9075faf6 100644 --- a/lms/templates/textannotation.html +++ b/lms/templates/textannotation.html @@ -1,9 +1,9 @@ <%! from django.utils.translation import ugettext as _ %> <%namespace name='static' file='/static_content.html'/> -<%static:css group='style-vendor-tinymce-content'/> -<%static:css group='style-vendor-tinymce-skin'/> -