@CodenameTim@fosstodon.org avatar

CodenameTim

@CodenameTim@fosstodon.org

Gardener, homebrewer, bread baker and hot sauce maker. Assister with Django Debug Toolbar.
Jazzband | DEFNA | he/him

This profile is from a federated server and may be incomplete. Browse more on the original instance.

jezdez, to random
@jezdez@publicidentity.net avatar

As the only @jazzband roadie, I want to confirm having gotten repeated offers from Tim (and from others) to help with Jazzband maintenance.

Ultimately and not very ironically, I’ve not had the chance to accept it since the hardest part has not been achieved in Jazzband. (1/3) https://fosstodon.org/@CodenameTim/112485191596931090

CodenameTim,
@CodenameTim@fosstodon.org avatar

@jezdez Thanks Jannis! I appreciate everything you've done. I hope we can collaborate in the future!

CodenameTim, to django
@CodenameTim@fosstodon.org avatar

I'm looking for some help running a GitHub organization dedicated to supporting community-maintained third-party packages.

I've written up an introduction here: https://www.better-simple.com/django/2024/05/22/looking-for-help-django-commons/

You can join here: https://github.com/django-commons/membership

CodenameTim,
@CodenameTim@fosstodon.org avatar

@matthiask Thank you and @sabderemane both for the feedback!

CodenameTim,
@CodenameTim@fosstodon.org avatar

@sethmlarson I think the onboarding process will configure each project team that way. I'd be happy to make you an admin on the playground repo to check my work.

The biggest pain point in this regard is not being able to automate it. Though I haven't looked all that hard yet.

CodenameTim, to random
@CodenameTim@fosstodon.org avatar

@gvwilson I've been enjoying "Software Design By Example", thank you for writing it!

I've come across a few exercises now that I'm not 100% sure I understand what's being proposed. Is there a solution bank somewhere that I'm missing?

One of the specific cases is Chap 4's "Rewrite Any so that it does not repeated re-match text."

CodenameTim,
@CodenameTim@fosstodon.org avatar

@gvwilson Seems like it may be in the examples download.

CodenameTim,
@CodenameTim@fosstodon.org avatar

@gvwilson that's totally fair! We have a reading group within @djangonaut who have been working through it. It's been great!

kjaymiller, to random
@kjaymiller@mastodon.social avatar

Awww come on. I wanted to get a photo for my slides.....

[ALT IMAGE] - Google Slides Search for a GIF of the Racist Turtle returning no results

CodenameTim,
@CodenameTim@fosstodon.org avatar

@frank @kjaymiller Damn! 😂 Well played

benjaoming, to django
@benjaoming@social.data.coop avatar

Oy! Today, it's the 10 year anniversary for PR#2692 🥳

It's definitely worth celebrating how the good forces were victorious against all the loud mouth conservatives/trolls. Since my office is full today, I might need to get both a primary cake and a replica cake for redundancy 🍰

Congrats and thanks to @fcurella and everyone else involved in this.

https://github.com/django/django/pull/2692

CodenameTim,
@CodenameTim@fosstodon.org avatar

@benjaoming @fcurella Eesh, that was a rough read.

carlton, to random
@carlton@fosstodon.org avatar

Starting to get warmer ☀️ hopefully the plants will stop breeding now, and my nose will stop running. I love spring and all, but months of mild hay-fever is really boring.

I’m sure I never had this when I was younger. (Maybe I just didn’t notice 🤔)

CodenameTim,
@CodenameTim@fosstodon.org avatar

@carlton I'll let you know if wyndly improves things for me

CodenameTim,
@CodenameTim@fosstodon.org avatar

@carlton FWIW the steroid nasal allergy spray worked really well (until it exacerbated an unknown health defect of mine 🙃)

jack, to django
@jack@social.jacklinke.com avatar

I have a custom django model field in an installable standalone app.

This app has a migration file that creates a new composite type in a postgres db (if it doesn't already exist). Users installing the app shouldn't have to manually run this migration.

Anyone know how I tell django's migrations autodetector that if another app's model uses my custom model field and we generate migrations model, it needs to add a dependency to the migration associated with the custom field? 🤔

CodenameTim,
@CodenameTim@fosstodon.org avatar

@jack I suspect you'd need to do something in MigrationAutodetector.detect_changes method similar to the generate* methods. The dependencies get associated with the operation itself as far as I can see.

josh, to random
@josh@joshthomas.dev avatar

Excited to dig in to this and share it with the team at work! Bonus appearance of @paulox !

CodenameTim,
@CodenameTim@fosstodon.org avatar

@paulox @josh good luck Paolo!

josh, to random
@josh@joshthomas.dev avatar

Wrote a cursed custom Django field, OPField, that stores the location to a 1Password item using their custom URI (op://…) and has the ability to get the secret via the op cli.

op_uri, secret = OPField.with_secret()

I blame @CodenameTim and his blog post about the RegisterField that I haven’t been able to get out of my head since he wrote it months ago.

CodenameTim,
@CodenameTim@fosstodon.org avatar

@josh 🕵️🪲🔧

bmispelon, to django
@bmispelon@mastodon.social avatar

New article on my blog: a ORM technique I found for combining JSONObject and Subquery to build model instances: https://blog.bmispelon.rocks/articles/2024/2024-05-09-django-getting-a-full-model-instance-from-a-subquery.html

CodenameTim,
@CodenameTim@fosstodon.org avatar

@bmispelon 🤩 this functionality is something that belongs in the ORM ideally. I think a third party library is a good starting point, but I'd vote for it to go straight to main. People frequently want to fetch a list of discussion threads and the latest post of each thread. Your idea is perfect for that scenario!

CodenameTim,
@CodenameTim@fosstodon.org avatar

@bmispelon I don't know enough about the ORM if this bootstrapping approach has some unseen performance penalty. @lilyf maybe you have some insight?

joshdholtz, to random
@joshdholtz@mastodon.social avatar

🍕 And just like that… @DeepDishSwift is over

✅ Speakers delivered amazing talks
✅ Sponsors gave off amazing energy
✅ Attendees were so great to talk to and I saw so many new friendships made

Now… it’s time to rest 💤

CodenameTim,
@CodenameTim@fosstodon.org avatar

@joshdholtz @DeepDishSwift congrats Josh!

josh, (edited ) to random
@josh@joshthomas.dev avatar

What’s your typical async application look like in Django? I’m starting to dip my toes in after primarily just working sync and am running in to brick wall after brick wall.

I’ve got a “toolbox” app at work with a few small Django apps to help out our small department in various things and wanted to async something to deal with GitHub webhooks. Using Django 5.0 and daphne.

CodenameTim,
@CodenameTim@fosstodon.org avatar

@josh we're hoping to close that gap this summer with a GSoC project.

CodenameTim,
@CodenameTim@fosstodon.org avatar

@josh no, definitely not. You're voicing the reason we've been trying to implement it for the past few years. I'm excited to see how much of it we can achieve.

I'm a bit worried about how we instrument SSE or other responses that aren't tied to an explicit request. But we'll figure something out!

blaise, to til
@blaise@fosstodon.org avatar

that the project has a process for training contributors
https://github.com/djangonaut-space/program/blob/main/README.md

Not only is it well structured, it also has support from more experienced djangonauts. Sadly, it has concluded for this year. If you're interested in and want to develop experience contributing to , then you may want to mark your calendar for next year.

CodenameTim,
@CodenameTim@fosstodon.org avatar

@blaise @webology Please do!

Was there something in the docs that referenced Jan? If there's something we can communicate more clearly, let me know or @djangonaut know.

CodenameTim,
@CodenameTim@fosstodon.org avatar

@blaise @webology @djangonaut Ah, yeah. The ordering on the site needs to be flipped. We have a PR that addresses that here: https://github.com/djangonaut-space/wagtail-indymeet/pull/392

We just need to get it over the finish line.

nicole, to random
@nicole@tietz.social avatar

Today is May 4. Many know it as Star Wars day, but to me it’s forever associated with the May 4 massacre on Kent State’s campus. It feels more relevant than ever.

The song “Ohio” is about these events and is a fantastic song, too. Worth a listen today.
https://m.youtube.com/watch?v=EI1gcH2XCEw

CodenameTim,
@CodenameTim@fosstodon.org avatar

@nicole I thought NPRs article with a protester from the past was pretty good. https://www.npr.org/2024/05/04/1249023924/kent-state-shooting-activists-protests-survivor

baconandcoconut, to random
@baconandcoconut@freeradical.zone avatar

Has anyone ever been brave enough to see if big cats (tigers, jaguars, lions, etc.) like catnip?

CodenameTim,
@CodenameTim@fosstodon.org avatar

@baconandcoconut 100% the tiger king tried this.

CodenameTim, to django
@CodenameTim@fosstodon.org avatar

Coming back at update_or_create for round 2!

If you call update_or_create where the instance already exists and the defaults passed in are already the values on the instance, do you ever want it to actually re-save the instance?

I'm running into the case where I'd prefer it to not update the instance if it doesn't need to. I'm guessing I'm overlooking some race condition problem though.

#Django

CodenameTim,
@CodenameTim@fosstodon.org avatar
CodenameTim,
@CodenameTim@fosstodon.org avatar

@treyhunner @webology @ryanhiebert There's the option to disable it before calling a save operation. But that's generally manual. Or you'd have to roll your own comparison to determine whether to set skip_history_when_saving

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • osvaldo12
  • ngwrru68w68
  • GTA5RPClips
  • provamag3
  • InstantRegret
  • everett
  • Durango
  • cisconetworking
  • khanakhh
  • ethstaker
  • tester
  • anitta
  • Leos
  • normalnudes
  • modclub
  • megavids
  • lostlight
  • All magazines