Back to the video

Django: Looking Forward to the Next 20 years

Transcript

By Speaker 1, Emma Delescolle, Speaker 3, Speaker 4. From Djangonaut Space 2026. Published November 21, 2024.

Watch the video Markdown version 5,354 words · auto-generated · en

Summary

Emma Delescolle argues that Django’s stability should not become stagnation: although its mature ORM, migrations, Python foundation, and community keep her invested, the framework needs to make more visible progress. Comparing Django’s mostly centralized technical leadership and demanding DEP process with Ember’s specialized teams and accessible RFC process, she calls for clearer ownership of parts of the codebase, more support for contributors proposing improvements, and a simpler path for maintenance proposals. She suggests feature flags and parallel implementations—such as a new admin alongside the existing one—as ways to test substantial changes without disrupting users who depend on Django’s stability.

Transcript

Automatically transcribed, so expect mistakes in names and technical terms. Filler words are removed.

0:00 Introduction and Django Beginnings

Speaker 1

It's my honor to introduce our speaker for today, Emma, who has been part of the Django community for over a decade and has contributed to open source projects for nearly 20 years now. Thank you. Thank you so much, Emma, for joining in today. Talking about more, as a co-maintainer and co-author of DRF Schema Adapter and other source open source libraries. You'll find Emma sharing her knowledge and passion with developers all across the globe as an amazing, amazing and frequent speaker at conferences, Django Cons, workshops. And most of the times also inspiring folks with insight for articles and blog posts, as you might have seen in your emails Coming all the way from Belgium, Emma is here today at JangoNot

Space Session 3 to share her valuable experience with us. on Django looking forward to the next 20 years. The stage is all yours, Emma.

Emma Delescolle

Thank you for that wonderful introduction. So yeah, we're here to speak about Django and looking forward to the next 20 years. If you've seen any of my latest talks You might be disappointed to know that I will not have any AI generated images, but I have plenty of hot takes for you And I will be glad to discuss all of those hot takes if you want to talk about them with me. This is all the places where you can reach me. I'm also on the Django Note space. Discord so you can ping me there and I'm more than happy to change my mind on any of those

if you want to talk about them. Other than that, my name is Emma. I think everything that had to be said has already been said. So I will skip the introduction slide And to get started, I would like to ask you a question and you can answer in chat. And To look at the next 20 years, I'd like to first look at the present and I want to know why and how you did so get started with Django. Maybe it was because of the of the great admin or maybe it was because you had a project with your school or your employer that required you to

use Django or maybe it's just because Django is the best Python framework that there is. Or you did a Django Girls workshop or something else And you that's how you got started with Django. So if you could just drop a line in chat or just say out loud how you got started with Django. I I'm really curious too. To know where you all come from. So I've got someone that got assigned a Django project at work.

Somebody else. Say that Django was the obvious choice when they started working with Django. Yeah, this is this is one common way to get to get into Django is just because this is something that you have to do for work. Lilian attended a DjangoCon and became really in invested. So that's also really nice. So now that you've all shared, I want to share with you how I got started with using Django. s like

someone else in chat, I was I did some PHP for a while and I was shopping for a new framework and I was looking at a bunch of framework. You will probably recognize some of the names in there. You might not recognize some other names because they are old or They disappeared in the meantime. And the thing that made me really stick with Django and start getting invested in Django is that I fell in love with the admin. This was the major deciding factor with Django but also

like a lot of Python with Django there was one and only one obvious solution and by that I mean library for every concern. If I needed to do something with Django, there was a library for that that I could use with Django And the documentation was quite complete and this was something rare at the time. And I also like how the RM worked. If you worked with other if you've worked with other RRMs like SQL Alchemy for example, you know that not all RRMs are created equal. And I liked the one with Django. I also liked that There was inheritance instead of blueprints, blueprints that you will find in things like Laravelle

that somebody mentioned. The way migration worked was also really nice, although it was not part of Django Core at the time, it was Django South that was doing migration. And I liked the way Python worked in general. But today why am I still using Django? I cannot say that the admin is the best admin that there is out there anymore. There are other frameworks that do admin at least as nice as Django and some of them better. There is not anymore one and only one object solution for each issue with Django. There's

two, three, five, ten packages for a different approach like thrust or components and things like that. And the documentation in Django is still quite extensive, but other projects have brought other approaches to documentations and have made them a bit clearer than what Django is. I often find myself when I'm reading the Django documentation I am quite lost sometimes going from page to page and having seventeen documentation pages open at once because I was looking for one thing. I still like the inheritance over blueprints, the D RM, the migration and Python, but the real reasons why I I've stuck with Django

7:10 Django at Twenty

Emma Delescolle

is probably the personal investment I've put in Django. So the libraries I've written, the experience I've acquired, and also the community. So that's you here and the great Django community in general. And today Django is almost 20 years old and that is great but we should not pat ourselves on the back too hard here. because there's a lot of projects in Python that are 20 years old. There's Plone and there's track that is used by Django to track issues

There is Pelican, which is a statics website generator. There's also Cherry Pi. There's quite a few projects in Python that are 20 years old. And some of those projects are still thriving. Some of them are not thriving as much. And one of the reasons for that is that when you get a community around a project, there are people that stay around in the community, but there's also people that leave for many different reasons. And sometimes there's new people that are coming into the into the project, but not always. And From the introduction, I can see that some of you are pretty new to the to the Django framework.

And but whether you're new or not so new, I want to thank you for being here because you are part of what makes Django the community and I want to especially thank the Django nuts and the stars because you are the people who are keeping Django alive by showing such interest in doing things with Django and moving Django forwards. So as I was saying, twenty euros in Python is not that rare And in twenty years the world evolves quite a bit. Recently I've been to a city that I hadn't been to in twenty

years and I didn't recognize anything. Everything around me had changed And unfortunately when I look at Django and how it was 10, 15 years ago, I sometimes don't see that many changes. There 's since the two point two s for since the two point X series I've seen async as a major change, but It's still not fully there, unfortunately. There's been slow and steady improvements in the URM, and that's great because as I said, this is a port of Django that I loved. But when talking to fellows and ex-fellows, I hear a lot that nowadays what gets into Django releases

10:17 Ember’s Teams and Code Ownership

Emma Delescolle

is more bug fixes than feature, than new features even if there are new features that are steadily coming slowly in every area, there is more big bug fixes and features. And this is what brought me to writing this article: Stability Without Stagnation. And stability without stagnation is the motto for Amber. js. If you don't know Ember. js, it's a front-end JavaScript framework that is a bit younger than Django, but has been quite in sync with this release cycle with Django since the 1. x series. It 's got a vibrant and welcoming community, a bit like Django.

It is also pignonated and comes with batteries included. And during this comparison, I looked at several aspects of post framework that were similar or different. And one of the aspects that I want to dive into today is the different teams that are part of the greater structure of the project. And one thing I noted is that Django has mostly one technical team, which is the steering council. And Django and Ember sorry has many of them. There is the steering committee, which would be similar to the steering council. But they also have a framework core team, a tooling team, a data team, and a learning core team.

And in the current state of Django, this really sounds like a luxury, having so many committees and boards and teams or however you want to call them. But and at some point it might have looked like Twango couldn't do something like that because there was not that many people who wanted to get involved at such level. But the recent DSF board election give me joy and hope that more people want to get involved with Django because I believe it was the most candidates since a long time for a Django related election.

And so I'm I 'm I 'm quite glad about that. And one of the things that this luxury of having so many teams and committees offers is what I want to call co code ownership. Meaning that in Amber if you want to talk about the URM, there are a set of people that you know will know the URM in and out and that you can talk to them about it, you can raise issues, questions. talk about hey how could we do this differently? If you have questions about the CLI tools or like management comment in Django you can you can find somebody there and ask them

13:30 Code Review and Refactoring

Emma Delescolle

And this is great just for speaking, but it is also great for merging code and reviewing code. And so I here I have another hot take and I want to put a big huge disclaimer. This is not this has nothing to do with the people were involved with this pull request. Jake is doing an amazing work recently with Django and pushing a lot of du of stuff. It's more a critique of the of the process and how things have come to pass i in Django. So for a little bit of context, I'm talking about the merge the pull request that

was merged yesterday about bringing a simple block tag decorator in Django. And if I when I look closer at the code that that was merged This is basically the code that there is. I know that there is a scroll bar and that not everything fits on the screen. But the most important stuff is here at the top. And this is the new code that was added as part of this merge request. And If you look at that code and I go to the next slide, this is another method of the same class, the template library

class. That was already there. This is the code for the simple tag. And if you look at a bit more in that class, you will see that there is yet another place with very similar code. And so what I want to highlight here is that but when you do a pull request, what people see people who are reviewing that pull request what they see is the new code, the modified code. They don't always see they don't see the existing code. So unless somebody is very familiar with that specific piece of code, there are things that they might miss. Like here for the fact that basically we have three times the same method

with very slight changes that has been defined. And if that was happening in one of my projects, I would probably raise a little flag and say, hey, probably it's time for refactoring here and maybe we want to but That similar code somewhere in another method and call that or do something differently. But this is something that is only possible if People have ownership of the code and know exactly what they're reviewing and are very familiar with that part of the code. And so this morning I reached out to Jake and I asked him, well, did you look at the rest of the class and did you

Think about refactoring this? And it all and if you did, why didn't you? And basically he told me that he wanted to keep the pull request as lightweight as possible. So refactoring what's outside the scope of the pull request. And unfortunately this is something that I've Seeing a lot, I've experienced it myself. I currently have a merge request, pull request open somewhere. That the i in a comment somebody asked why aren't you doing this and that and that in that in that full request and my answer was I want to keep it as lightweight as possible so that there is no bike shedding possible on this merk merge

request. And this is and this is something that that happens a lot. And so Unfortunately, this in this case this leads to more work probably in the future because now that this full request of Jake has been merged I am after this call, I'm going to open an issue to say, hey, maybe it's time to refactor here. And this means that there's going to be another review process and more time spent and probably a bit of back shedding thrown in the middle. And things like that.

But before going any further on that, I want to ask you to Go in chat or open your mic and tell me if you yourself have spotted something like that some in Django because right now you're sp Spending a lot of time inside of Django, inside the code itself. So I know that during Simon's session on Monday somebody mentioned something about row locking that might no be legacy because all the databases support it or if you've seen things that you that don't feel right and that you think should probably re be revisited inside a code of Django.

Speaker 3

I know there's been a lot of talk about redoing like the start project command and like the initial code like that regarding your something that could benefit from a more modern approach, I would say that the community is looking at

Emma Delescolle

Yeah, that that's a great example. When I wrote about something that could benefit a more modern approach, I was thinking about the not so recent anymore, but the change to using Passcript instead of using OS module that that appeared in Django. So I I'm going to go to the next unless somebody else wants to mention something they've seen.

Speaker 4

I don't know this area too well, but I think I've heard about the templating. It's not easy to work with and There I think there was a forum discussion about making it easier to extend the templating system. Instead of like having to override an entire page every time you implement it

Emma Delescolle

Yeah, I've I've seen some talks about the template and this about the template tag here is probably part of that. Also yes, support for partial templates. Now the warning I want to raise now is that if you're going to be creating issues on the on Django's track saying hey this should be refactored and We could change that change this to make it more modern or something. Very likely answer will be that you need to create a depth

21:14 The DEP Process

Emma Delescolle

and that is not an issue. To be raised directly in the tracker, but that you should create a dAP and launch a discussion in the forum. And the dApps is another point of comparison I had in my article And because Ember has something very similar to the DAP process, it's they call it an RFC process. And there are some differences between the RSC process and the debt process. One is the barrier to entry. For a lot of different small reasons, creating a depth in Django is more complicated than creating an RFC

in Amber And in my opinion, this contribu this creates a barrier to contribute. And barriers to contributions can be good. because they help to keep the sanity of the fellows who have to review the pull request and the issues. But if this barrier is too high, it can also prevent people to want to contribute. And I feel that we see this with Django because when we look at the number of depths in Django, there is 14 accepted depths. I believe there are two in-progress depths. And when you look at Ember you see that they

have over a thousand RFCs that are either in progress or have been accepted. or going there. So it's it's a very, very different scale there. And making debts more accessible in the midterm is something that I would like to see because debts are hard, it's a complex process You need to start a discussion on the forum, you have to spend the mental energy to deal with the backshedd that goes with the discussion, you have to find a shepherd to help you have to brush upon your RST because

It's written in RST and all in all when you add all those steps it makes it hard to even get started to do a depth so i i'm curious c can you do a quick show of hands to see As who is familiar with the debt process in Django, first of all. Yeah, I see one hand, two hands Okay. And among those people who has ever written a depth successfully?

So I see no hands at all. So I think this is a hot take, but I think this proves my point. Yeah, I see Alex's comments. And it feels like Very little people feel ready to write a dAP. I I've seen somebody who's currently on the DSF boards say recently that they were not confident writing a dApp. And maybe those things that I mentioned, those refactoring and small things, maybe they're good candidates for depths because they might be easier to sell

than a whole new feature. New features are har are hard to sell. And maybe creating maintenance steps would be a good place to start. And the reason I'm trying to sell this step process and try to encourage you to raise issues that might turn into maintenance steps is that One of the things that I would love for stars that are have graduated for the from the Django project is to be able to hold other contributors' hands in the creation of DAPS

to help people get their foot into contributing to Django and adding feature and one way the best way to be familiar with the depth process and be able to help others write depths is to have written some depths yourself. And I also want you to be careful there. I I'm pushing you to write devs and to and so that you can help others, but you need also to be mindful of your own time. I think that having people to guide others, writing them. Writing depths can be very useful to avoid wasting time, but you should also be careful not to waste your own time in helping too much people.

26:41 Moving Django Forward

Emma Delescolle

In writing depths that you don't believe in and things like that. So if you do just this and start writing depth and are able to help others be very careful and mindful to also not get burnt in there and spend too much time and get discouraged later. But All in all, some people say that Django is done and I believe that Django is not done. In French there is a saying, it says qui n'avance pas recul, which means that if you stand still, you fall behind. And I believe that Django is

is at a very pivotal time in its history where it needs to move forward again in order not to fall behind. And there's a lot of places where There are small improvements that can be done. There is the maintenance that I talked about, but there is also tooling debug upgrades. Right now, there's for example for the upgrade, there is this great package, Django upgrade I'm not sure what's going to happen now that Adam step stepped down from the from the committee. There 's a lot of small things that can be done with forms, with Ajax components, the admin. all those things. So

In the midterm I really want to make this hard thing, the debt process less hard. But in the short term, I think if we can help people get involved in this process and just by sheer fact of seeing, oh no we have a hundred deaths Maybe this will not sound so scary to a lot of people and maybe some other people with will get involved. So I guess I'm about at the end of my time and it is no time for questions.

Speaker 1

Thank you, Emma. This was amazing talk.

Emma Delescolle

Thank you.

29:07 Questions and Discussion

Speaker 1

So, yes, we if you have any questions, feel free to unmute yourself, raise your hands, and unmute yourself and or put them in chat. Yes, Tim, please go ahead.

Speaker 3

Fantastic talk. I really enjoyed it. Regarding the depths and the maintenance depths, would you see that as us I'm assuming you're familiar with the debt process because you did the comparison, but like would you see that as us needing to refactor the debt process or do we need to create like for the maintenance depth, like would that be a separate slim down version of the existing one?

Emma Delescolle

So as things stands right now, I think that it would be great to start with the full BEP process for maintenance. It's not ideal, but get things moving. In the future I am a strong believer that the debt process needs to be refactored. You mentioned somebody raising the language barrier because the language used in the in the depth one is quite high and might not be accessible to someone who's not a native English speaker. I have seen Sarah say that she was not ready to write a dab.

So for me this is A signal that says, yes, there's something wrong with the debt process. So the debt process needs to be recycled. And I hope that this is something that the next steering council can tackle. But I don't think it's going to go smoothly. I think this is going to take time. And while this is going on There is no reason to delay things and try to go further.

Speaker 3

Lovely. Thank you.

Speaker 1

Okay. The next question is up from Alex. Do you believe part of the stagnation is due to the steering council technically not having that many written obligations other than voting in depths? Do you think the council should be amended to have more soft obligations like shepherding or commenting on features?

Emma Delescolle

Yes, so I I've recently looked at the obligation of the steering console and my reaction there was okay but this looks a lot Like this work is already done by the fellows and there is not much left to do for the steering council. So yes, I would love for the steering council to be more involved. Like in steering itself like the name implies and show the direction for the Django for Django for the future releases for the next maybe not the next twenty years but for the next two or five years. And This

It would be great if they could shepherd more depths. I don't know if in the current situation I feel confident requiring that from the steering console as we've established that the process is difficult and so many people don't feel confident with it. But yes, I would love also to see something like feature requests from the steering council. So say identify, hey, this is something that is missing in Django. We'd like people would like to work on this step forward. So reversing the debt process instead of having

people come up with features and say, hey, I want to have this merged in Django, having Django say hey, we would like to have those feet this feature Does someone want to help? Yeah.

Speaker 1

Hope this answers your questions, Alex. On the same note, you mentioned features, right? There was in your blog post your touch base on feature flags too. Would you like to enlighten on that?

Emma Delescolle

Yes, so what one way of moving forwards and bringing new stuff to a project without breaking everything, and so keeping the stability is having feature flags so that some new features and some new behavior can be introduced in the project they can be tested by the community at large without impacting the large user base that relies on the stability of the project. So f features lacked is a known way of doing that. For bigger things, I I'm also thinking

of introdu introducing duplicates. So I'm going to take the admin as an example because it's it's the elephant in the Jenkins room. There 's very few people that are familiar with how the admin works and I would even say that the Django admin is not written in Django. As it is not comparable to anything else in Django. And for example, we could have move the have the admin and have a Django Contript new admin where people start adding new

new features and start refactoring that code and keep the old admin and the new admin in the code and have that behind the feature flag. Do you want your project to use the old admin or do you do your Do you want to use the brand new admin that's going to break every two weeks? But you agree with that and you want to help improve that? And this could be I I've taken the admin because it's a really big part, but this could be used for example for the start project. We could keep the old stored project content and next to the old stored project we could have brand new stored project And people could try using it

and going forward. I believe that this is a more viable approach than having asking people to create third-party libraries and saying hey maybe your third party library will be included in the in Django core later on because there's first of all a visibility problem. If I'm brand new to the Django community I can publish 15 packages, nobody will ever see them unless they stumble upon it on GitHub or something. And also there's to my knowledge there's very little libraries that have been actually included in Django. There is Django braces.

And that's pretty much it. South was not integrated in Django, it was picked but it was rewritten into Django core. It was not the same. library. So yeah, this kind of feature extended feature flag is something that I would see would be useful to help Django move forward

Speaker 1

That's really thought provoking, thank you. Do we have any more questions? Okay, so we have a question from Lillian. Can you tell us more about the learning core team at Ember?

Emma Delescolle

I can try to tell you a little bit more about them. So they 're in charge of among other things, they're in charge of the documentation websites that is quite nice if you if you go look at the at the Android documentation. It's one of the best documented projects I know. They also spent a lot of time on Discords. Amber as a very active Discord. And There's people who spent huge probably an unhealthy amount of time there,

answering questions and If you are new or experienced, if you go to the Django Discord and have a correct question, a well-formed question about Amber, you will find somebody And that will answer you. I believe they're also involved in organizing other things like workshops. and things like that. But I don't want to say anything that I'm not sure about. The learning team is about ten people. to give you an idea, so the learning core team is larger than the Django

steering console. So this is this is something that is taken quite seriously.

Speaker 1

Interesting. Okay. Thank you so much, Emma, for broadening all these amazing, amazing perspectives. Thank you so much for joining in today. You

Emma Delescolle

're welcome.