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