Django Rest API Security: Broken Object Level AuthorizationIntroduction Broken object-level authorization is listed as #1 on the Top 10 API Security Risks – 2023 by OWASP [1]. In this article, we will explore some best practices for ensuring that your Django applications have robust object-level authorizatio...Jul 8, 2023 · 5 min readblog.stevenwithph.com
The Singleton Pattern Explained: Database ConnectionIntro The Singleton design pattern is a creational design pattern you might use when you want to restrict a class from having multiple instances. This pattern is often used when there is a need for a single, centralized resource. We often use classe...May 14, 2023 · 5 min readblog.stevenwithph.com
Optimizing Python ClassesClasses provide a way to encapsulate data and functionality, making it easy to reuse code and maintain a clean codebase. However, if your classes become bloated or inefficient, it can lead to slower performance and decreased productivity. Let's dive ...DApr 29, 2023 · 4 min readblog.stevenwithph.com
Installing Postgres Extensions with Django Migrations.It’s possible to create Postgres extensions without having to log into your database and run it manually. The same task can even be more daunting if you have to do it the Docker way. Django makes it way easier with database migration operations. This...Apr 26, 2023 · 2 min readblog.stevenwithph.com