2023-07

2023-07-20 This morning I gave the talk “All about djangoproject .com” during EuroPython 2023 🐍🇪🇺🇨🇿

This morning I gave the talk “All about djangoproject .com” during EuroPython 2023 🐍🇪🇺🇨🇿

I thank @llamakarl for introducing me and everyone for participating and asking so many questions, even in the hallway track 😃

Slides 👇 https://www.paulox.net/2023/07/20/europython-2023/

#EuroPython #Django

2023-07-12 Django: Clean up unused code with Vulture by Adam Johnson

As projects evolve, old functionality gets removed. Often such deletions are incomplete, leaving in their wake unused functions, classes, and other code objects.

Unused code is clutter that brings no joy: it hinders comprehension, taxes codebase-wide quality improvements, and can sometimes lead to errors if later used.

In an ideal world, test coverage data would reveal unused code, since a perfect test suite has 100% coverage of all features.

But most projects don’t live in the ideal world, so unused code detectors exist. These tools use static analysis and heuristics to find probably-unused code, which you can then decide whether to remove.

2023-04-11 Advanced Django cheat sheet + https://github.com/maguowei/starred by julien Cordesi

https://fosstodon.org/@julienc/110696940147900787

This #django cheat sheet is primarily for my own use. Hopefully, it will help you too as you use this great #python framework!

👉 https://github.com/ju-c/advanced-django-cheat-sheet

2023-07-03 Organizing Database Queries: Managers vs. QuerySets #Django ✍️ 📢 🧹 #article #database #python

Managers vs. QuerySets 🥊 Check out my next article on Organizing Database Queries in #Django ✍️ 📢 🧹 #article #database #python

In this article Mariusz Felisiak introduces concepts of Django’s Managers and QuerySet to organize common database queries.

Django on Fly.io is pretty sweet! Check it out: you can be up and running on Fly.io in just minutes.

I’m always focusing on writing readable and maintainable code.

When our project becomes bigger and more complex, the number of models and complexity of data access control can increase significantly.

We’re starting to ask ourselves questions: How to organize data structure?

How to control access to our data in a reliable way? How to share common logic that protects our data? Where to keep data filters? etc.

This article is trying to answer some of these questions by introducing concepts of Django’s Managers and QuerySets . We will describe the biggest differences between them and how they can be used to organize common database queries .