Back to the video

Day 2 Lightning Talks

Transcript

By Speaker 1, Speaker 2, Speaker 3, Speaker 4, Speaker 5, Speaker 6, Speaker 7. From DjangoCon Europe 2024. Published July 11, 2024.

Watch the video Markdown version 4,157 words · auto-generated · en

Summary

The lightning talks cover several practical and community topics: Alyssa presents a Django/Nginx approach to authorizing access to uploaded files using protected file fields, internal Nginx locations, registries, and automatically generated views. Other speakers introduce a Django object-cloning library, explain how developers can improve user journeys by defining problems and designing UX before implementation, and invite attendees to PyConES in Vigo and EuroPython in Prague. The final talks encourage engineers to organize around technology ethics—especially AI—and describe Django Space as a supportive mentorship route into contributing to Django.

Transcript

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

0:00 File Access Authorization

So

Speaker 1

lightning doors will be five minutes maximum. Yeah. It's start.

Speaker 2

Okay, so Yeah, I'm talking about file access authorization and I have a basically a concept for that and I'm mostly asking for feedback here. So first about me, I'm Alyssa, I use she, her pronouns. I'm a DevOps engineer at Unas and Devolve, which is a small or medium-sized software consultancy in Berlin, and I'm also a freelance system engineer consultant. We ran into a problem about serving files from our server. So we have file fields in a monolithic Django application that is running behind an Nginx server. We are running in a somewhat constrained network environment, so we cannot really use Amazon as three buckets or similar services and we wanted to avoid hosting additional software like Minio

because this just adds complexity, it makes it more difficult to maintain the whole infrastructure and we really just had some the few files That users uploaded that we wanted to serve. And our question was: how can we actually add authentication authorization to access to these files? So if you look at the Django tutorials, they usually just ask you to put them in the media folder. folder and then make the media folder available with Nginx. But they don't really talk anything about like managing the access to these files. So I searched around the web and I did not really find any good solution for that. If you know a good solution, please let me know. But we basically wrote our own solution.

That solution works mostly on view classes that I have first a public View that is just the normal access as you know it for like public files that everyone may be able to see like user profiles or stuff like that And then there's also protected views that may either require at least authentication that user may users need to be logged in, or even authorization that only for sp like certain users can view a certain file. And this is based on XXR Redirect and uses Nginx internal locations. So these are still served via Nginx, but they aren't accessible from the outside if you aren't authorized to do so.

We have protected file fields, which are subclass of file fields that use a mix-in. They basically are aware of the links where to find the view that is related to them. They can be integrated with all the other features and they are the point where access properties and other things can be configured about the views. There's a registry for protected file fields, so this avoids using the same directory for multiple purposes. This keeps track on which files are stored where so you have a bit of data governance so you actually know what kinds of information you are storing in your files that users are uploading. And they can also automatically generate the URLs entry for all the different views you use for these files.

There's protection classes that are mostly based on Kevin Mitnick's four classes like public, internal, private, and confidential. There's An automatic generation of view classes so you don't really need your developers in a team to manage a whole bunch of views because most of them can be derived from just some properties of these protected file fields. And I'm now at the point where I would like to open source this library because it's yeah, it's basically a whole framework that I built there. I really need feedback on this, like what are actual use cases outside of our own organization and our own projects. And so I'm just asking you to if you if this is an issue that is affecting you that you would like to talk about.

Or you know any other framework that I didn't find, like please talk to me. So you can either send an email or Come to my website to find other means of contact or just talk to me at this conference. I'm only here until tomorrow evening. So yeah.

4:22 PyConES 2024

Speaker 1

Okay, I can speak here while he is preparing everything. We start. So yeah, we are David, Miguel and Arthur and me Alex so we want to ask you if you had enough time visiting bigo and surroundings. I think that I 'm gonna talk for here. So if not you will have a second chance. So this year in October will be the PyCon S the Python Spanish conference in Vigo as again will be the f fourth five and sixth of October No, that's fine, no problem. So we'll be a really big conference as usual with Python. We'll be more than eight hundred developers. We will try to reach even one thousand, we don't really

know. Spanish Python the Python is PyCon S is really big conference. We will have from people from mostly of course from Spain because it's Spanish conference, but we will have English track as well. We will have workshops. We'll not be only the three days of the conference. Fridays, Sunday, Saturday and Sunday, but also the previous week will be activities in the city. There will be people from different levels, from core developers in the Python core but also from different computers communities, students, so it's a conference prepared for everyone. We are trying to be very diverse, very inclusive, bringing everyone together

from companies and etc. The Python conference relay specifically in sponsors, in sponsorships, because the ticket also is very achievable and very cheap for everyone. And as well, well the call for papers is open. We'll be closing soon, but if anyone here is happy to join the conference as a speaker as well, it's very welcome. That would be great. And yeah well Here some of part of the team. There are more people. Others are attendees. And so yeah, just to say that. That we will be very happy to have you in

in the conference as well as speakers, sponsors, or attendees. That would be great. And yeah, thank you. If you have any questions you can reach us these days and I think that's that's everything. Thank you.

6:54 Django Instance Cloning

Speaker 3

Hello. Hello. My name is Alexander. I am from a company named Jandy Starov. We based from in Ukraine, but it's like irrelevant pronoun. Yeah, I want to talk a little bit about a custom practical very practical solution for a very k common problem that they faced a lot lately, which is like cloning for the Janga instances. There is like a few solutions on the online on the GitHub that I found and I also seen the custom solutions that I wasn't satisfied. So I build my own. So f for me, the main requirements was the solution must provide automatic way to

walk all over all of the instances it should be cloned. That it should be have a way to control the how instances of the Django modulus actually. copied also I need to specify what ex what exactly relations I need to clone and yeah it should be also reusable. There is more in-depth technical explanation on the hacker about all of the solutions that they made and the reasoning for that and there is also a Python library that you can like check on the GitHub so a little example what I mean by cloning, cloning it's like just copy object to another object. And

for me it was very often I needed to copy like for example yeah it actually okay I can see like if you have like a pro product and some like characteristic for the fee features for this product you need to copy like product and all of the features of that. And sometimes you need to change like title, change some automatically change some like properties of the said instances. So I what I made was like a library that actually have ability to fetch all of the data like if you have one product and bunch of related instances you can like specify a simple config for that. Like

if you if like on the config it's like it will be related name for just like related instances so it's like if it's it's a characteristics it's characteristics it's like whatever You can also specify very simple. I don't know if you see specify very simple what how actually cloned instances can be changed. you can do it like in the code and then you just like use the clone function put the instance that you want to clone config for the relations that need to be cloned and this like class that you use to specify the customize the cloning process and it will take

it will make a new instances for you. So yeah that's basically it. Yeah, you can check the library there. You can check the technical explanations and the reasoning for the technical solutions there as well as part of this library Because I needed a way to walk over the relations that actually also provide interface to like iterate ov. this all of this structure so you can iterate over product over all of this like charakteristic and so etc so yeah thank you very much

Speaker 4

Hi everyone, my name is Martin and I prepare a fast talk about user journey. So I'm the founder and CEO of Optimist Studio. There is a reason why our logo goes outside of the box. So we help companies succeed by solving business and tech problems with customer-centric approach. So essentially we do Django development, but we also heavily focus on user experience. So I'll share with you why I want to do that stock. But so first of all, customer journey and user journey is very important of course when we build we all work for you know companies, we build software and we always think about you know gonna be the user experience. But why this talk here? Because usually backend developers are not UX

10:54 User Journeys and UX

Speaker 4

designers and not every company affords the possibility to have a UX designer in the team And sometimes, let's face it, as back end developers we have to touch frontend, we have to think about the UX and we have to suggest to our bosses, managers, clients and so on how to do that better. And not everybody who like I'm a back-end developer and I don't love touching front end, for example I don't like doing CSS, but you know I have to also sometimes do it and so I also have to often think about the UX experience of everything. So our approach how we usually work and I want to share this with you because we found this to be very helpful in the way how we process things, is when there is like a request for a task or like a mini project happening, new features.

We like to first define what the problem is. So you know we'll write like a pretty extensive ticket on Jira or whatever. And then we do the design, which could be user experience design, could be user interface design, could be software architecture design, right? But and only after that we do the development. Because we figured, you know, let's better walk through every possible step and you know edge case while we define it. And then we design it. And after that only we actually go and execute. So I prepared a bunch of questions here and I would love and inputs from the audience. So how customers find you, I mean your company usually on the internet? Anyone Anything?

Google, right? So SEO. So SEO is pretty important. So SEO is like of course one of the first things that we think about. So we actually have a you know a free service for to a evaluate like SEO and the UX of companies and like just websites. So this is like the first more evident thing that we think about how customers find us. But I don't know if you saw the talk of Will yesterday. He talked a lot about distribution and just marketing your company and just bringing it out there to people and that they will be aware of what you're building and then that leads them this leads them through certain paths of their user journey right And so other ways that customers can find you is through code outreach. Right? Probably you have like a sales or business development team that maybe takes care of that,

to set up ads and lead magnets, social media as well, of course, like you could be very active you know post videos online and so on. Or let's face it through recommendations. So often a company could be referred to by another one or just you hear some about somebody from a friend. So why I'm sharing all that is just to probably think about a site project you're running or a company that you're running and you know consider how customers find you and what's the next step when they find you So what are the import the most important aspects to consider on your website? I think, and that's what we think with our team, and that's what we've identified as helpful, but if you have more feedback, please talk to me. I would love to discuss more on this.

so some of the things that we think are very important on a website are copy, UI, UX, and clear call to action. So essentially if a website is not functional It's not gonna be great, right? Like if you don't have a clear code for action, probably the users would not know, you know, okay, like it's a nice company, nice website presentation. What am I supposed to do next? So just again like just thinking about what's what's their experience once they come on your website and then What aspects are important about your customers' experience when they use your systems or service or product? So there's like so many factors there, right? Like it could be performance and so on, but for example, just an idea is to map What's the current user experience and map it to the what you want to be the ideal user experience?

Software performance, of course, like how fast it's loading, the tool, the SAS, or whatever you're building for your users. Is there process automation? For example, you know, like they place an order, do they receive an automated email? Is it something that's enhancing their experience, right? A good communication with the customer. And of course the infrastructure, because that impacts performance. And lastly, how to encourage the customers to recommend you after using your service. So say they've consumed your product or service and you know you can do affiliate programs, email campaigns, and fun. Have an article that you can go in depth and check it out online. Thank you.

16:08 Ethics in Big Tech

Speaker 5

Thank you. It's a borrowed laptop. So I thought I'm going to give a reaction to the today's keynote by the excellent keynote by Mary. So this is like a conversation 'cause she gave an excellent keynote which I think was very well connected to my thought yesterday and then I asked a question and then she replied and then she asked another question and then I wanted to have a follow-up but That was room for questions and not for comments. So this is the follow-up comment. So this is I imagine like two birds speaking, what is happening here. And the follow-up is about this. I asked a question about who should where are these people ha

who are conscious about the problems that may be caused by AI and her answer was well people engineers in deep mind and in open AI and that sort of places should be the ones who should initiate this conversation wider in the society. And I made a face which you didn't see and it was like meh Because the problem is in my experience these engineers, smart engineers in these communities like Google and other communities are smart but Not all of them think like this. So th there are two kinds of developers. People who want to just build something

And they don't care about how that will be used. They are just interested in the technical challenges. Like they want to build a bridge. And they don't ask, why are we building the bridge? And unfortunately most of the developers are like that. And I what I would like to see is more developers who are also asking, why are we building the bridge? What are the consequences, intended and unintended consequences of link? a system, a bridge or anything else engineering like. So I observed this problem already years ago because I had this discussion inside Google a lot of times And especially starting in 2018 where there were some ethical problems that I deeply care about, which is inside Google.

And I know that this is recorded, so I cannot say too much about that. But You should Google the term Project Maven, twenty eighteen. It's a contract between Google and the United States. Department of Defense. A lot of us were really not happy about that contract going on. So what we did is we protested. And we reached some results with trying to stop Google of doing this, but in the end we were not as strong as the company and the pressure from the shareholders. So that will not work. That's the problem.

That will not work. So what can we do? Well I'm trying to do something and I created an ethics community that that group of animals talking. Inside Google I created, co-founded, an ethics community where engineers are thinking about the ethical, the tech ethical aspects of the things that we are building. And I encourage all of you to do the same, especially if you are working at a big or medium-sized company, to do the same and organize together and put pressure on your employer so that They don't do unethical or questionable things, especially in this new world where AI is having such an impact on everything, not just tech, but everything in society

The question is I ask every day and you might ask now, then why am I actually still at Google if I have ethical concerns? About the work I'm doing and about the company. Well I looked around that that that White Forest at other big tech companies and the thing is Other big tech companies are not better. In fact they are somewhat worse. For example, Google still has some internal term transparency, but Amazon and Facebook and Apple does not and this is getting worse and worse. So the next question is the last one Why am I in big tech in general? I mean small tech is not affected that much about these problems. So I'm at this crossroad

And I'm thinking about this a lot and I guess I don't have a good answer to that one. I'm I'm staying at Google because it's still nice to be there. I mean they are excellent people, they are interesting technical challenges. But there will be a day when I'm gonna take the other pass. So thank you for sharing. Thank you for allowing me to share this

21:19 Django Space Mentorship

Speaker 6

Hi everyone, I'm Raffaella. This is the first ever Django Con and this is the first one I I'm BR speaker, so I just want you to be supportive and thank you. Have you ever wondered to contribute to Django? Because I actually just want to but how? Where did I start it? Where what should I ask? How can I did this one thing? My option

it's going to the Django no space program what is this is a mentorship program where all participants are going to be split inside the group. So they will be leaded by a mentor. and there will be our navigator, our captain and with a small group we'll be able to achieve more different kind of work and I think it's it's it was really a great idea to contribute. and join the community. I really want to be

a big thank you to my teammate Mo my n other teammate Pradman my there was a lot of people that will help you because one of my problem was what if I asked a silly question. There's there's a lot of the thing I don't know. I shouldn't really did this one thing. And inside the program I understand there no what there were no silly questions. And I encourage all of you if you want to contribute for the first time ever. to apply to Django Space if you want to mentor

or if you're gonna to be a participant. We are willing to find new captains new navigator and of course new Django notes. If you want some more info you could check this out Thank you.

23:57 EuroPython 2024

Speaker 7

Alright, so let's play a game. I have three very easy questions for you to guess. First one, which city is this one? It's not Brago. No, not Curic. Florence, no. Geneva, no. Stockholm no. There is a hymn here. There's a flag on top. Luzar, no, but close to it? Tug no. Very close to it. No, Geneva German speaking. Yes, Basel.

The second question, this one. I think this one is easier, right? Yes, Dublin. And the final one Yes, now Bragg. And now I have a question and it's for a prize. The fastest one can win this beautiful cookie cutter so you can make python cookies to your friends. So pay attention. What do those three cities have in common? Okay. I've heard the right answer, but I have no idea who was the first one. Who was the first one? Someone there? Okay, congratulations

EuroPython. So these three cities are the cities that hosted the last three editions of EuroPython. And this year it happens that EuroPython is again in Prague for the 23rd time. forward to is more than 120 talks, six parallel tracks, sixteen tutorials, ten posters. We have six keynote speakers and if you're interested in the schedule you can scan this QR code. This is a preview we have created only for DjangoCon, so please do not share it. But if you're interested in the schedule, I will leave it here for a few seconds so you can go and check out all the amazing sessions we have. And this year

we have one celebration at European. We are celebrating 10 years of Django Girls jogo girls were created ten years ago at Europarton in Berlin and as this year Here is the 10th anniversary. We are seeing a Django Girls workshop. So if you like, if you would like to attend, please go to our website and sign up for it. So Europe Python as well, it's a week of All Things Python. There will be two days of tutorials and workshops, three days of conference talk, after it there are sprints If you want to find out more about EuroPython, you can scan this code or you can go to europython.

eu and find more info. Thank you and hope to see you all in Prague.