notes /
Notes from DjangoCon Europe 2025
6 min ¡ 1313 words
This year, DjangoCon Europe was held in Dublin and I attended remotely, which suited me just fine (though a little birdie says next year it will take place muuuch closer to home, so I will almost certainly attend in person). The remote event was hosted on Venueless and honestly, props to the DjangoCon EU team for making it so good for us. Any issues and ideas posted in the chat were responded to promptly. Not just technical problems; it was heartwarming to see how our suggestions were implemented (e.g. checking our chat for questions to the speakers, customising link text colour for accessibility, adding Celtic folk music to the waiting screen between talks)!
Disclaimer: I wasnât able to watch all the talks and I didnât always make notes for the ones I did watch. Also, you will notice there were also some notes that are slightly incomplete, or that I forgot who said it â sorry about that! The talks should be up on YouTube soon, though.
Haki Benita, âHow to Get Foreign Keys Horribly Wrong in Djangoâ
Not directly related to the topic, but hereâs something I wanted to note: if for example or mock purposes you want to create one or more objects with a text element, django.utils.lorem_ipsum can help!
from django.utils import lorem_ipsum
for i in range(11):
BlogPost.objects.create(
title=f"Blog Post #{i}",
body=lorem_ipsum.words(100)
)
Carlton Gibson, âHow We Make Decisions in Djangoâ
As a former Django fellow and a well-respected name in the Django community, he had a lot of wisdom to impart â specifically, about a consensus-based model of teamwork in the Django core team. These are some of the tenets (wasnât able to make exhaustive notes):
-
Consensus as trust: consensus doesnât mean everyone always has to agree; it means you can be confident that your viewpoint was adequately considered
-
Consensus as reciprocity: new members take more than they give, as they will need more help, but will eventually pay it forward
-
Consensus as norms: the constants in which decisions are made
-
Consensus as contexts: the frameworks in which decisions are made
-
In terms of team sizes where this model works: â6 people starts to get big, 10 is too manyâ / âEver been in a meeting with 13 people? What was the point of thatâ
-
If companies can give more engineering time to Django (i.e. through their developers contributing to the project) that would be valuable
-
Django works really hard on backwards compatibility!
Mykalin Jones, âSupporting Adult Career Switchers: The Unbootcamp Methodâ
For obvious reasons, I was really excited about this talk and happy to see the topic get some visibility.
-
âFriends donât let friends make pie chartsâ
-
Bootcamps neglect to go over what students will need for technical interviews
-
There is a problem with getting students to retain info from bootcamps
-
Coding isnât for everyone, so they need to make sure they know they will like this career switch
-
Find good, robust material to help people learn to code
-
Learning to code = you have to like reading and learning
-
Best way to learn is get your hands dirty
-
The most successful career switchers are the ones who think: what can I do in my current job to incorporate programming?
-
Consider: what problem do you want to solve & why do you want to learn programming?
-
Python is close to (English) natural language â ideal for teaching to children
-
You have to give students fully-formed learning content and contextualise it. Just sending links doesnât work!
-
Avoid saying âwhy donât you just ______â
-
Flexibility is awesome but it has to be balanced with accountability
-
Less planning, more doing
-
CBT (cognitive behavioural therapy) is actually a good basis to go off in a learning environment. The more you do a thing, especially if itâs rewarding, the more youâll want to do it. So go for âletâs repeat thatâ and not âyou need to study 10 hours weekâ
-
Break goals down into actionable sizes
-
Create social accountability and undeniable evidence of advancement from the start
-
Create a chain of successes that motivate students to chase the next success
-
Error messages are our friends! Donât head to ChatGPT!
-
Curiosity mindset
-
If you canât handle being wrong, the code is probably not gonna lie
-
Students say they want to code, but in a lot of cases, actually they just want to be tech-literate
Graham Knapp, âFeature Flags: Deploy to some of the people all of the time, and all of the people some of the time!â
-
Django Waffle is a good package for deploying feature flags
-
Use cases: deploy to different user groups, e.g. superusers, staff
Jacob Walls, âDynamic models without dynamic modelsâ
Arches is a framework for cultural heritage data sites focused on geospatiality.
Vince Salvino, âOne Thousand and One Django Sitesâ
-
Low-traffic sites donât require Kubernetes â a use case for it would be a TV streaming site to increase the number of workers to match the traffic when a new episode of The White Lotus drops. Essentially it ârepeatsâ the site.
-
A Wagtail site can be destroyed with repeated 404s (caused by expensive operations to scan the database) â bots carrying out DDoS attacks attempt to reach
/xmlrpc.php, which is specific to Wordpress. -
For CodeRed customers, 60% of DDoS traffic has come from Meta AI training!!!
-
./manage.pycan be abused for code injections.
Agnès Haasser, âEurope, Django and two-factor authenticationâ
-
DATA SAFETY = PEOPLE SAFETY. This is what GDPR is really about â not cookie banners or legal obligations, but ethics.
-
What parts of someoneâs data are immutable and therefore require extra protection? e.g. you can change your bank details but not your date of birth
-
TOTP is the name of the time-based one-time password used in 2FA
-
Packages for this include
django-2faanddjango-otp
Sumit Singh, âDjango Admin at Scale: From Milliseconds to Microsecondsâ
-
One of the most common Django admin bottlenecks is n+1 queries
-
Running
Queryset.explain()can help you determine the efficiency of a queryset -
Think about query counts, not just speed
-
Use built-in Django tools first (e.g.
select_related(),only(),defer()) -
Clean code tells you what it does, docs explain why!!!
-
Pythonâs built-in
frozenset()makes a set immutable -
Paginate by primary key rather than an offset
HTMX
There were a couple of talks on this (by Lucas Pires and Thomas De Bonnet). I canât remember which parts are from whom, unfortunatelyâŚ
-
âThe page refresh is what divides frontend developersâ
-
With HTMX, you write your code where things happen: e.g. make a request, show load indicator where the state is in the HTML. Everything happens from the backend, which requires a mindset shift.
Lightning talks
Eliana Rosselli
- There are websites out there for checking the colour contrast for accessibility
- Use large font sizes and light mode for code samples in talks!
- Your talk should lose nothing if images arenât visible (either because they donât load or a person canât see them)
Person I canât remember
Good philosophy for picking and configuring a linter: stop introducing new problems and fix the ones already there!
Emma Delescolle
Calico SSG for Django! Website and repo
Fabian Braun
Talking to your community matters â it may help you find that answer you didnât know you were looking for! Go to meet-ups, engage on dedicated Slack servers, etc.
Daniele Procida
Very impactful talk on the importance of representation and inclusion â especially of Black people â when building software.
-
âThe effect of failure is only represented to people it failed in the first placeâ
-
âItâs easy to forget people when theyâre not thereâ
-
â[Certain experiences] will remain hidden from me because I am not one of those people and those people are not around me when they are affected by the products being madeâ