[Django]-Conditionally loading development or production static files in Django template

3👍

I would use your DEBUG setting which is already included in django.core.context_processors.debug.

{% if debug %}
    <!-- scripts -->
{% else %}
    <!-- other scripts -->
{% endif %}

Leave a comment