Uncategorized

JWT Authentication System with Django, SSO and DRF

In this tutorial we will create an OpenID Connect and JWT Authentication system with Django, DRF and SimpleJWT and RSA algorithm. First, let’s install the required packages: Next, let’s create a Django app called authentication: python manage.py startapp authentication We’ll define the models, serializers, views, and URLs in the authentication app. In models.py, we’ll define …

JWT Authentication System with Django, SSO and DRF Read More »

Creating A Django Middleware for JWT Authentication and SSO

Middlewares are tools that hooks into Django request and response life cycle. In this tutorial, generated with the assistance of ChatGPT, we will build a middleware for authentication using JWT (Json Web Tokens) and also for SSO (single sign on). Let us start Creating the Middleware import jwt from django.conf import settings from django.http import …

Creating A Django Middleware for JWT Authentication and SSO Read More »

Introduction to Python Watchdog – Monitoring File Systems and Directories

Monitoring is an essential aspect of software engineering. One of the aspect of monitoring is checking and watching files for changes and modifications. There are several libraries that can be used to monitor files and directory for changes. These include inotify guard watchdog etc In this tutorial we will be exploring watchdog – a simple …

Introduction to Python Watchdog – Monitoring File Systems and Directories Read More »

Exploring OpenAI’s ChatGPT – Building Apps in Multi-Languages with ChatGPT

ChatGPT is an amazing AI service created by OpenAI. It has ushered us into the next generation of search engines that is powered by LLM (Large Language Models) and NLP systems. Let us explore this awesome service. First of all you will need to create an account (email and phonenumber as well as the basic …

Exploring OpenAI’s ChatGPT – Building Apps in Multi-Languages with ChatGPT Read More »

How to Fix Gunicorn Connection In Use (‘127.0.0.1’, 8000) Error

In deploying web applications on a server specifically flask application, we use gunicorn, a wsgi software or server to run our flask app. However you may face certain issues and one of the commonest issue is the connection in use error. This occurs when there is something listening on the port that gunicorn is bound …

How to Fix Gunicorn Connection In Use (‘127.0.0.1’, 8000) Error Read More »