Explore my thoughts, experiences, and insights.

🛡️ The Hidden Trap of Django's @login_required Decorator — And How It Broke My Auto-Logout 🕵️‍♂️
#3 @login_required decorator

🛡️ The Hidden Trap of Django's @login_required Decorator — And How It Broke My Auto-Logout 🕵️‍♂️

In this blog, I have shared a debugging experience from my Django project where I implemented an auto-logout feature using JavaScript. The goal was to automatically log out inactive users. While the logout worked, a strange issue occurred: after the auto-logout, logging in redirected me to the logout view again—causing an immediate re-logout. This puzzling behavior turned out to be caused by the @login_required decorator, which redirected unauthenticated users to login with a next=/logout/ parameter. The blog dives deep into how @login_required works and how it affected the flow. It's a must-read for Django developers handling session-based workflows.

⚙️ Task Scheduling in Django: A Practical Guide with Real Use Cases
#2

⚙️ Task Scheduling in Django: A Practical Guide with Real Use Cases

In most web applications, there comes a time when you need to automate things — send an email later, run a report every night, clean up data weekly, or notify users just before a deadline. As a Django developer, I faced this exact situation in a recent project and had to choose between two popular Python tools: Celery and APScheduler.

Building Systems, Solving Problems: My Journey in Backend Development with Django
#1

Building Systems, Solving Problems: My Journey in Backend Development with Django

In this first blog post, I share my journey as a backend developer working with Django and PostgreSQL. I talk about building a dynamic logbook system, the technologies I'm using, and key lessons I've learned so far. This post kicks off a series where I’ll regularly share my real-world development experiences, technical insights, and daily challenges.