April 2023

Decorators in Python

Decorators in Python are a special kind of function that modify or extend the behavior of another function. They are a design pattern used to add extra functionality to a function without having to modify its code directly. How do decorators work? Example 1 Say we have a function that prints out Hello, world! when …

Decorators in Python Read More »

JWT Tokens in Django

JWT Tokens or JSON Web Tokens are an industry-standard for token-based authentication and authorization. JWTs are digitally signed, which makes them secure and tamper-proof. With Django, you can easily implement JWT-based authentication and authorization. By using JWTs, you can ensure that only authenticated users can access your application’s resources. JWTs also make it easy to …

JWT Tokens in Django Read More »