How do I make my own template filter on Django?

So I was just working on a project and wanted to create my own template filter to help me do stuffs. And I looked at Django's documentation, on how to create a custom template filters. I followed all the instructions but too bad it didn't work :( and gave me the TemplateSyntaxError at my_app/ and also with Invalid Filter: 'my_filter'

Then I looked on the internet and read some answers from stack overflow but still couldn't get things to work. In the end, I found a fix to the problem.

In addition to create a templatetags directory inside my ... Read more

Making the Sudoku Solver

Back in my introductory programming course in university, which was in the beginning of 2016, one of the major part of the course was called "Something Awesome". Something Awesome is basically choosing to learn a particular skill by doing a project or something. I chose to learn Problem Solving by creating a Sudoku solver, because I enjoy solving Sudoku puzzles, and I thought it would be great to have a program that solves Sudoku puzzles.

At the time, I wasn't even sure that it would be possible to create a program that can solve Sudoku, due to the limited amount ... Read more

Hello World!

Hello! This is my first blog post and I am super happy to finally be able to deploy my website. I decided to use to host the website. By blogging, I hope I will be able to reflect more on things that I have learnt and I also hope to learn more things related to web development. I used python/django to create this website.

There are still a few things on my to do list to improve this website:

1. Categories - I wanted to put a category on each blog post so it will be easier to ... Read more