TILs

Things I've Learned, inspired by Simon Willison's TIL

March 2nd, 2024

Dockerize your Gatsby Projects

JavaScript-based projects tend to rot quickly. Very often, when I come back to them a few months later, nothing works. Today simply running my Gatsby blog after a few months made my MacBook Pro crash. Like most programmers, I have many side projects, and I want to minimise the…

Read More →
January 29th, 2024

Google Login with Django Allauth

I often find myself needing to implement Google OAuth in Django projects but keep forgetting the exact steps. So, I'm documenting the process here for future reference. Step 1: Install django-allauth First, install django-allauth using Docker Compose: Step 2: Update Django…

Read More →
January 21st, 2024

Login Required Modal with Django

The goal is to show a modal when the user clicks on a link, rather than redirecting him right away to the auth page. It just seems less confusing. In a file called , we add the following code: Now we need to include our modal code in our , so it is accessible from everywhere: And…

Read More →
December 22nd, 2022

Cloudflare's impact on performances

I was hoping that moving to Cloudflare would improve my site loading speeds and solve a bot problem I had, but it did neither. After moving to Cloudflare, the site immediately went down with this error: I had to change the Cloudflare SSL setting to "Full (strict)" to resolve the…

Read More →