Reputation: 524
Tring to load external source in contact form template, mezzanine
{% block extra_js %}
{{ block.super }}
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
{% endblock %}
compressor.exceptions.UncompressableFileError: 'https://www.google.com/recaptcha/api.js' isn't accessible via COMPRESS_URL ('/static/') and can't be compressed
Upvotes: 0
Views: 82
Reputation: 191
There might be a problem with a new formatter you have added to serialize a model - try adding a try catch block to it to remove the error
Upvotes: 0
Reputation: 1736
Put the script tag inside the {% extra_head %} block instead of the {% extra_js %} block. If you look at the base template you'll see everything in {% extra_js %} gets compressed via {% compress %}:
Upvotes: 1