Django4 Blog

This demonstration blog contains 11 posts.

Demonstration Blog

Features:

Weighted full text searches

Stop word removal from searches

PostreSQL database

RSS feed

Markdown support through template filter

Custom template tags

Post retrieval by tag similarity

Tagging functionality

Comment …

read more...

Weighted Full Text Searches and Stop Word Removal

The initial blog was build on SQLite but migrated to PostgreSQL to take advantage of the full-text features.

The text search is against multiple fields, initially but inefficiently on the …

read more...

RSS Feed and Sitemap

Using django.contrib.sites and django.contrib.sitemaps APPs the blog dynamically generates an XML sitemap available at /sitemap.xml for each post when it is published.

An example is:

<urlset> <url> <loc> https://example.com/blog/2022/10/2/custom-template-tags/ </loc> …

read more...

Markdown Support

This blog uses a custom filter to enable the writer to use markdown in the creation and editing of posts.

Mardown as defined by wikipedia is:

Markdown is a lightweight …

read more...

Custom Template Tags

This application employs custom template tags, both simple_tag and inclusion_tag.

The simple_tag processes the given data and returns a string. The inclusion_tag processes the given data, but returns …

read more...

Post Retrieval by Tag Similarity

Below each post where applicable a list of similar posts is generated. This list of similar posts is generated by:

  1. Retrieving all the tags associated with the blog
  2. Creating a …
read more...

Tagging functionality

In the creation phase of each blog, tags can be assigned using a comma delimited list. This allows for categorisation of blog posts. By clicking on the tags, blogs can …

read more...
David J Nevin 2022