Django Best Practices: Lessons from 6 Years Building a Large-Scale SaaS

A pragmatic guide to Django architecture patterns, based on real-world experience building and scaling a large SaaS application over 6 years.

23 February 2026 · 5 min · Gaëtan Grond

My Self Hosting Journey

For the past two years, I have been self-hosting most of my personal projects and daily tools on a small but powerful ThinkCentre M710 Tiny. Here’s my two-year feedback. Why Did I Start Self-Hosting? I could spend hours justifying my decision by arguing that we rely too much on big corporations that take our data for free. But, simply put, I wanted more control over my digital life, the ability to run only the services I truly need, and to avoid spending my entire budget on server costs. ...

3 April 2025 · 5 min · Gaëtan Grond

Flutter the Dying Package Ecosystem

Flutter Has a Package Problem It’s true that abandoned projects in open source software (OSS) are common. NPM is infamous for the number of abandoned packages, which is mainly due to the lack of internal utility libraries, where for instance Python internal libraries shine. However, maintaining a Flutter package is more challenging since you need to account for at least two platforms for mobile (iOS/Android), and increasingly, web and desktop applications if you are brave enough. ...

3 April 2025 · 3 min · Gaëtan Grond

Django Packages I Have Used and Loved in 2024

It has been almost 4 years since I launched my SaaS business in Django, while fancier Python frameworks have been released since then, Django still remains king of the Python web framework. Thanks to an ever-growing ecosystem of packages and their outstanding stability. Only the most useful and stable packages have made the cut, links to the official package source are included in the title itself. ...

3 January 2025 · 5 min · Gaëtan Grond

Three Years of AI Assisted Programming : The Good, The Bad, and What's Next

In 2021, I was one of the many beta testers of GitHub Copilot. Back then, AI programming tools weren’t widely used, Stack Overflow was still a go-to resource, and solving coding challenges relied mostly on pure brainpower. Fast forward to 2024, and programming has evolved into something entirely different. Let’s talk about it. ...

22 November 2024 · 7 min · Gaëtan Grond

8 Django Tips and Tricks Learned Over the Years

After working with Django for more than 4 years both professionally and personally, I have learned a lot of tips and tricks that I wish I knew when I started. In this article I will share some of the most important ones that I have learned over the years. Since Django documentation is very good, I will not share many code snippets, but rather explain the concepts and provide links to the official documentation. All of these tips and tricks came from my own experience, the Django documentation, and Two Scoops of Django book. ...

12 November 2024 · 7 min · Gaëtan Grond

Why Session Hijacking Remains a Persistent Web Threat

Web Security is a significant concern for me. Over the past few years, I’ve been learning about ethical hacking and the broader field of web and server security and one topic that has always intrigued me is session hijacking. While many security threats, such as weak passwords, SQL injections, and cross-site scripting (XSS), have been mitigated and are relatively easy to fix, session hijacking remains a persistent threat. Its ease of exploitation and potential damage make it a serious risk to web applications. ...

14 October 2024 · 5 min · Gaëtan Grond

Protecting Data in Django Admin: Preventing Accidental Deletions

The Django admin interface is one of the standout features that make Django such a powerful framework. It allows you to manage your data, customers, and models with ease. However, as with any tool that provides significant control over your application’s data, there’s a need to ensure that sensitive actions like deletions are handled carefully. ...

23 September 2024 · 3 min · Gaëtan Grond

Storing List in Models with Django

Lists or arrays are commonly used data types in programming. However, Django does not have a built-in field for storing lists in models. In a recent project, I needed to store a list of strings in a model, and I had to find an elegant and efficient way to store the list in the database. ...

4 September 2024 · 5 min · Gaëtan Grond

Fluent Python - My Private Notes

These are my personal notes from reading Fluent Python. They’re a bit scattered, but I’ve found them useful for understanding some of Python’s more advanced features, like decorators, generators, and defensive programming. I’m sharing them here in case they’re helpful to others working through similar topics or if you’re considering reading the book. ...

25 August 2024 · 13 min · Gaëtan Grond

Why I Chose HTMX Over React and VueJS - A 6 Month Review

Mise à jour — juillet 2026. Cet article date de 2024 et reflète ce que je pensais après six mois de HTMX. Deux ans plus tard, j’ai changé d’avis et je suis revenu en arrière. J’ai raconté pourquoi, en détail, dans HTMX et Django, l’erreur de parcours. Je laisse ce texte en ligne tel quel : le raisonnement de l’époque reste valable dans son contexte, c’est la conclusion qui a bougé. ...

29 July 2024 · 7 min · Gaëtan Grond

Django Security Essentials a Comprehensive Overview

Introduction In this article, I will provide a comprehensive overview of the essential security practices and configurations that you should consider when developing a Django application. A good starting point to ensure that your application is secure and follows the latest security best practices and guidelines is to use the well-known cookiecutter-django template. This template provides a solid foundation for building secure Django applications by incorporating various security features and configurations out of the box. ...

4 April 2024 · 12 min · Gaëtan Grond

How to Add MFA to Django Allauth in Under 5mn

As of 0.56.0 release of django-allauth (2023-09-07) the support for Multi-Factor Authentication (MFA) has been added. This is great news for the Django developer as it allows you to easily add MFA to your applications, but the documentation is still a bit sparse, and it appears that the feature is not widely known yet. ...

13 March 2024 · 4 min · Gaëtan Grond

Reflections on the First Two Years as a Tech Founder

Two years ago, on the 15th of January 2022, I decided to launch my startup with my co-founder, a SaaS service built for hospitality professionals to help them with their day-to-day tasks that I was building for the past year. In those two years, I have travelled to 7 different countries, built a website and two mobile apps from scratch and a lot more. Let’s take a look back at what I have learned. ...

16 January 2024 · 11 min · Gaëtan Grond

The 3-2-1 Backup Rule: What It Actually Costs to Implement

As good of a developer as you are, you are not immune to data loss, mistakes happen either by you or an outside force, so it is important to have a backup strategy in place and this needs to be done before you need it. One of the most popular backup strategies is the 3-2-1 backup strategy, but what does it mean and how can you implement it for almost no cost and effort? ...

13 November 2023 · 5 min · Gaëtan Grond

Beware of Fake Vulnerabilities Reports and Fear Mongering Tactics

A few days ago I started receiving concerning emails directly to my work email address, the email was from a so-called bug bounty hunter that was claiming to have found a vulnerability in one of our products, the email was very generic and it was not clear what was the vulnerability, the only thing that was clear was that the person was asking for money to disclose the vulnerability. ...

14 October 2023 · 3 min · Gaëtan Grond

Understanding IDOR Vulnerability in Django and how to fix it

Django is by design very secure, most of the common vulnerabilities such as XSS, CSRF, SQL injection, clickjacking are fixed by the simple use of the framework, but there is one that is not fixed by default, and it is the Idor vulnerability. In this article we will see what it is and how to fix it. ...

15 August 2023 · 4 min · Gaëtan Grond

Create a Simple Maintenance Feature in Django

When working with Django for my startup I performed on several occasions very complex migrations and maintenance tasks that required the site not to be accessible for a few minutes and sometimes even hours. Even if the end user is not able to access the site, our team of superusers and admins should be able to access the site and perform the maintenance tasks. ...

5 August 2023 · 5 min · Gaëtan Grond

Secure Your Django Administration with 6 simple steps

One of the most loved features of Django is the built-in administration interface. It allows for an easy way to manage your data and is highly customizable. However, it is also a very common target for attackers. In this article, we will look at some of the most common attacks against the Django administration interface and how to protect against them. ...

3 August 2023 · 8 min · Gaëtan Grond

How to Customize The CSRF Failure View in Django

When working with Django and third party libraries, you may encounter a CSRF error on login or any other form submission. This is because Django requires a CSRF token to be sent with every form submission except GET requests or if the form has the csrf_exempt decorator. During my work with Django, I have encountered this error many times, sometimes due to my own mistakes and sometimes due to third party libraries or user behavior. ...

1 August 2023 · 3 min · Gaëtan Grond

Locking Down a Production Server in 5 Minutes with a Cloud Firewall

I am a long time user of DigitalOcean and I have been using many of their services for more than 6 years, including their Cloud Firewall. I have been using it for a long time and I have been very happy with it. Most of the time when people create a new droplet they just leave their server open to the world, which is not a good idea, especially if you are running a production server. ...

31 July 2023 · 5 min · Gaëtan Grond