Lithium blog app¶
Lithium blog is a simple blog application which allows multi domain, multi user blogs.
Lithium blog default templates require the
'django.contrib.comments' application. But, if you write some custom templates you can work around this dependency.
Quick start guide¶
To get started using the
blog app, follow these steps:
Install the blog app by adding
manage.py syncdbso that Django will create the post tables.
Add the blog app’s URLs to your project’s
urls.py:urlpatterns = patterns('', ... url(r'^blog/', include('lithium.blog.urls')), ... )
Some of the application’s behavior can be configured by adding the appropriate settings to your project’s settings file.
This is the amount of posts per page on any post list pages, such as the main post archive, tag post archive etc.
When a post is created, if this is set to True, a post will be pinged to the servers in
BLOG_PING_SERVERS = ( 'http://blogsearch.google.com/ping/RPC2', 'http://rpc.technorati.com/rpc/ping', 'http://api.my.yahoo.com/rss/ping', 'http://ping.feedburner.com', )
This is a tuple of servers to be pinged.
This is the amount of posts to display in the RSS Feeds for the blog.
There are two templates which are used, these are blog/post_list.html and blog/post_detail.html.
This template will get passed:
post_list: The list of posts, this can be iterated over to display each Post within.
is_paginated: A boolean representing whether the results are paginated. Specifically, this is set to False if the number of available posts is less than or equal to paginate_by.
If the results are paginated, the context will contain these extra variables:
paginator: An instance of
page_obj: An instance of
This template will get passed a
post in the template context