DEV Community

stackbento
stackbento

Posted on

Django learning Day 9 progress

🧠 Django Learning Journey – Day 9

Today started with a small visual fix and ended with a pretty big functional update!

🎨 Removing the Blue Line from Links
Finally got rid of that annoying hyperlink underline — with just one line of CSS!

a { text-decoration: none; }

Such a tiny line, but it completely changed how my app looks.
Tomorrow, I’ll add proper buttons instead of links to make the UI even more polished.

⚙️ Frontend Control for Task Completion
Earlier, I used to go to the admin panel to change the status of a task (Completed/Not Completed).
But today… I did it directly from the frontend! 🙌

I created two views in views.py, both using the primary key and my model’s is_completed field.
With a simple boolean check —
✅ If completed → strike through the item
❌ If not → keep it normal

And yes, again used redirect instead of render, something that’s now becoming second nature to me!

đź’„ UI Updates
In the home.html, I updated the incomplete tasks’ table row with Bootstrap’s table-danger class —
Now the difference between completed and incomplete tasks is visually clear at a glance!

🚀 Almost There!
It’s starting to look and feel like a real app.
Just a few things left —

Add proper buttons to links

Enable edit functionality from the frontend

Once that’s done, I’ll have my first full CRUD project 🎉

Any suggestions on free-tier deployment platforms to make it live? (open to ideas, as I am not aware of any free tier, just knew Heroku, but I see it isn't free anymore!)

đź’¬ Curious Question:
In my views.py, I often see request passed into the function, but sometimes it’s never actually used.
Even VS Code highlights it in a different color — why is that? 🤔
Is there a way to handle or clean it up?

How did you feel when you completed your first full CRUD and deployed your Django project for the first time?
Would love to hear your experiences!

Django #Python #LearningInPublic #WebDevelopment #100DaysOfCode

Top comments (0)