{% extends "base.html" %} {% load i18n utility_tags %} {% block content %}

days_since

{% if request.user.is_authenticated %}

{% trans "You joined:" %} {{ request.user.date_joined|days_since }}

{% endif %}

{% trans "Object created:" %} {{ object.created|days_since }}

get_first_media

{{ object.content|get_first_media }}
{{ object.content|striptags|truncatewords:"20" }}

humanize_url

{{ object.website|humanize_url:30 }}

try_to_include

{% with included_template="utils/item.html" %} {% try_to_include included_template %} {% endwith %} {% try_to_include "doesnotexist.html" %}

get_objects

{% get_objects all from contenttypes.ContentType as contenttypes %} {% get_objects doesntexist from contenttypes.ContentType limit 5 as contenttypes %} {{ contenttypes|pprint|escape }}

parse

{% parse "{{ STATIC_URL }}css/" as css_url %}

{{ css_url }}

{% parse object.content_to_parse %}

append_to_query

{% endblock %}