Posts tagged with "Django"

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 →