{% load media_tags %} {% addmedia "css" %} {% endaddmedia %} {% if user.is_authenticated %} {% addmedia "js" %} {% endaddmedia %} {% endif %}