def entry_list(request):
    """A view of a blog index page"""
    return list_detail.object_list(request, 
        queryset= BlogEntry.objects.published(),
        paginate_by = get_cached_site_prefs().blog_entries_per_page,
        page = get_page(request),
        template_name = 'blogging/blog_entry_list.html',
        template_object_name = "entry"
    )
def tumblelog_entry_list(request):
    """A view of all tumblelog entires, paginated"""
    return list_detail.object_list(request,
        queryset = TumblelogEntry.objects.published(),
        paginate_by  = get_cached_site_prefs().tumblelog_entries_per_page,
        page = get_page(request),
        template_name = "blogging/tumblelog_entry_list.html",
        template_object_name = "entry"
    )
Beispiel #3
0
def project_list(request):
    """A view of a project index page"""
    return list_detail.object_list(request, 
        queryset= Project.objects.published(),
        paginate_by = 20,
        page = get_page(request),
        template_name = 'projects/project_list.html',
        template_object_name = "project"
    )