Python

PyCon Africa Day 1

Thursday August 9 2019 was the second day of PyCon Africa in Accra. About 17 talks were delivered, including two keynotes. Below you’ll find a quick summary of the talks I attended. The pictures in the post aren’t great because they were either taken from a bad angle or using a smartphone. I’ll update this …

PyCon Africa Day 1 Read More »

Python hasattr() Function

A useful built in function in Python is hasattr(). This function is used to test if an object has some attribute. hasattr() returns True if the object you specify contains a particular attribute and False if it does not. hasattr() syntax: hasattr() takes two parameters: object. The object whose attribute you want to check attribute. …

Python hasattr() Function Read More »

Django static page

In this article you’ll learn how to create a Django website with a static page using Function Based Views and Class Based Views.