cms app class LinkApphook(CMSApp): name = _("Link Display") urls = ["linker.urls"] apphook_pool.register(LinkApphook) url.py urlpatterns = patterns('linker.views', url(r'^$', object_list, dict(queryset=Link.objects.filter(published=True), template_object_name='link', template_name='linker/index.html', paginate_by=15, allow_empty=True)), ) template that works without extenting base: {% extends "base.html" %} {% load cms_tags %} {% load voting_tags %} {% votes_by_user user on link_list as vote_user_dict %} {% vote_counts_for_objects link_list as vote_counts_dict %} {% block title %}Link {{ link.title}}{% endblock %} {% block base_content %}
| Vote | Link |
|---|---|
| {% dict_entry_for_item llink from vote_user_dict as vote_user %} {% dict_entry_for_item llink from vote_counts_dict as vote_counts %} |
{{ llink.title|escape }}
{{ vote_user }} - {{ vote_counts }} {{ vote_counts.score }}point{{ vote_user.score|pluralize }} after {{ vote_user.vote_counts }} vote{{ vote_user.vote_counts|pluralize }} posted {{ link.submitted|timesince }} ago by {{ link.user.get_full_name|escape }} details |