blog.views¶
Classes
BlogArhiveView(**kwargs) |
Displays the blog archive by years and months |
BlogCategoriesListView(**kwargs) |
Displays the list of categories that have posts in them |
BlogCategoryView(**kwargs) |
Displays the list of posts in a given category |
BlogFeaturedPostsView(**kwargs) |
Displays the list of featured posts |
BlogHomeView(**kwargs) |
Displays the list of all published posts starting from the recent. |
BlogMonthArchiveView(**kwargs) |
Displays the list of posts by year and month |
BlogPostSearchView(**kwargs) |
Displays the search page |
BlogPostView(**kwargs) |
Displays a blog post page |
-
class
blog.views.BlogHomeView(**kwargs)[source]¶ Bases:
blog.views._PostsListViewDisplays the list of all published posts starting from the recent.
Template:
blog_posts_list.htmlSpecific context variable:
posts
-
class
blog.views.BlogFeaturedPostsView(**kwargs)[source]¶ Bases:
blog.views._PageTitleMixIn,blog.views._PostsListViewDisplays the list of featured posts
Template:
blog_posts_list.htmlSpecific context variables:
postspage_title
-
class
blog.views.BlogCategoryView(**kwargs)[source]¶ Bases:
blog.views._PageTitleMixIn,blog.views._PostsListViewDisplays the list of posts in a given category
Template:
blog_posts_list.htmlSpecific context variables:
postspage_title
-
class
blog.views.BlogCategoriesListView(**kwargs)[source]¶ Bases:
blog.views._PageTitleMixIn,django.views.generic.list.ListViewDisplays the list of categories that have posts in them
Template:
blog_categories_list.htmlSpecific context variables:
categoriespage_title
-
class
blog.views.BlogPostView(**kwargs)[source]¶ Bases:
django.views.generic.detail.DetailViewDisplays a blog post page
Template:
blog_post.htmlSpecific context variable:
post-
model¶ alias of
blog.models.Post
-
-
class
blog.views.BlogArhiveView(**kwargs)[source]¶ Bases:
blog.views._PageTitleMixIn,django.views.generic.list.ListViewDisplays the blog archive by years and months
Template:
blog_archive.htmlSpecific context variables:
months– the list of class:datetime.data objects representing monthspage_title
-
class
blog.views.BlogMonthArchiveView(**kwargs)[source]¶ Bases:
blog.views._PageTitleMixIn,blog.views._PostsListViewDisplays the list of posts by year and month
Template:
blog_posts_list.htmlSpecific context variables:
postspage_title