Joseph Oseh Frank's blog

Create a blog application with django, part 11: create django custom template tags and filters

Django provides the following helper functions that allow you to create your own template tags in an easy way:

simple_tag: Processes the data and returns a string

inclusion_tag: Processes the data and returns a rendered template

Read more

Create a blog application with django, part 10: configure django to use postgreSQL

You are currently using SQLite for your blog project. This is sufficient for development purposes. However, for a production environment, you will need a more powerful database, such as PostgreSQL, MySQL, or Oracle. We will change our database to PostgreSQL because It's much more robust and the Django ORM (Object …

Read more

Create a blog application with django, part 9: create django rss feeds

Django has a built-in syndication feed framework that you can use to dynamically generate RSS or Atom feeds in a similar manner to creating sitemaps using the site's framework. A web feed is a data format (usually XML) that provides users with frequently updated content. Users will be able to …

Read more

Create a blog application with django, part 8: create django sitemap

Django comes with a sitemap framework, which allows you to generate sitemaps for your site dynamically. A sitemap is an XML file that tells search engines the pages of your website, their relevance, and how frequently they are updated. A valid sitemap increases your website's search engine ranking.

Read more

Create a blog application with django, part 7: add pagination in django blog

When you start adding content to your blog, you will soon realize you need to split the list of posts across several pages. Django has a built-in pagination class that allows you to manage paginated data easily.

Read more