Joseph Oseh Frank's blog

Master the Art of Handling Dates and Times in Django with Python’s datetime Module

Managing date and time is a crucial aspect of many web applications, and Django, a popular web framework for Python, provides robust tools to handle these tasks. In this blog post, we will explore how to master date and time in Django using Python’s datetime module, along with code snippets …

Read more

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