@adamchainz@fosstodon.org
@adamchainz@fosstodon.org avatar

adamchainz

@adamchainz@fosstodon.org

:django: #Django technical board member
🍕 London Django Meetup Organizer with https://fosstodon.org/@cgl
✍️ Author of three books on Django and Git
🇬🇧 London / 🇵🇹 Lisbon

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

paulox, to django
@paulox@fosstodon.org avatar

At DjangoCon Europe 2024 I met Antonio Melé, author of "Django 5 by Example", for which I wrote the preface 📗

It was nice to meet Antonio and have a copy of his book (which I recommend to everyone) with his dedication ✍️

adamchainz,
@adamchainz@fosstodon.org avatar

@paulox Oh damn, I missed Antonio! Lovely chap.

adamchainz, to random
@adamchainz@fosstodon.org avatar

Loving all the @djangonaut mentions at @djangoconeurope, including this lightning talk from Raffaella

adamchainz,
@adamchainz@fosstodon.org avatar

@mahryekuh @djangonaut @djangoconeurope Not yet, will try find her tomorrow!

anze3db, to random
@anze3db@fosstodon.org avatar

Any idea why PostgreSQL is this much slower compared to SQLite and MySQL?

This is on Ubuntu 24.04, connecting through Django and I've tried both psycopg and psycopg2, but the result is the same: ~200 requests per second with Postgres compared to ~2000 with SQLite or MySQL.

adamchainz,
@adamchainz@fosstodon.org avatar

@anze3db @frank Did you have it in your DATABASES setting dict? It’s not a standalone setting, it’s per connection.

mrchrisadams, to random
@mrchrisadams@mastodon.social avatar

Dear - is there a central repo of branding and media asset information for the django project? I'm looking for high quality versions of the django logo, the django pony , colour swatches and the like, and I couldn't find one when looking at the website.

I'm aware of the django pony site,
https://djangopony.com/

…and that I can buy a license of the original pony to edit if need be:

https://www.istockphoto.com/fr/vectoriel/vecteurs-de-conte-de-f%C3%A9es-gm91230581-3355498?st=3eb57c4

adamchainz,
@adamchainz@fosstodon.org avatar

@mrchrisadams @andywood afaiu the pony is just that site and isn’t under the DSF in any way

adamchainz, to random
@adamchainz@fosstodon.org avatar

Here’s my slides for today’s talk “Data Oriented Django Deux”, as a PDF

https://github.com/adamchainz/talk-data-oriented-django-deux/blob/main/talk-data-oriented-django-deux.pdf

adamchainz, to random
@adamchainz@fosstodon.org avatar

My pre- routine involves digging up the beach

carlton, to random
@carlton@fosstodon.org avatar

Pre check-list. Re-Install messaging app 85 on the phone ✅

adamchainz,
@adamchainz@fosstodon.org avatar

@carlton “Try our new AI features”... sigh.

paulox, to random
@paulox@fosstodon.org avatar

I'm heading to Vigo to attend DjangoCon Europe 2024 🎊

I'll be taking an overnight trip to arrive at the conference venue tomorrow morning ✈️

My pre-departure rituals include making myself a plate of pasta and enjoying a strong espresso 🤌

CC @djangoconeurope

An Italian espresso

adamchainz,
@adamchainz@fosstodon.org avatar

@paulox Safe travels and see you there!

adamchainz, to random
@adamchainz@fosstodon.org avatar

☀️ Enjoying a family day around Porto before we take the train on to Vigo for

webology, to random
@webology@mastodon.social avatar
adamchainz,
@adamchainz@fosstodon.org avatar

@webology get well soon 💚

adamchainz, to django
@adamchainz@fosstodon.org avatar

🆙 django-upgrade 1.18.0 is out, with support for Django 5.1 (currently in alpha) and a fixer for the argument rename in CheckConstraint:

https://github.com/adamchainz/django-upgrade?tab=readme-ov-file#django-51

adamchainz,
@adamchainz@fosstodon.org avatar

@stuartm Yes it’s nice that Django is stable and reliable, though I’d also be happy to see some more mass-refactorable changes to make things more ergonomic :)

pganssle, to random
@pganssle@qoto.org avatar

Do they have this specific brand and flavor of yogurt outside of Spain? I think it is basically Oikos Triple Zero, but this particular flavor is super good (it has little chunks of banana in it), and doesn’t compare to the banana cream flavor we have in the States.

adamchainz,
@adamchainz@fosstodon.org avatar

@pganssle They have it in Portugal 😜 and yes it’s yummy.

bbelderbos, to python
@bbelderbos@fosstodon.org avatar

🔍 Terminal Tip: Instant Source Viewer! 🐍

Below I defined a function called pys (you can add it to your .zshrc).

Now you can peek at Python source code from the command line like this:

$ pys module [object]

E.g.
$ pys collections
$ pys collections Counter

adamchainz,
@adamchainz@fosstodon.org avatar
anze3db, to random
@anze3db@fosstodon.org avatar

Is it just me or is the emoji picker on MacOS just unusable sometimes? It drives me crazy when this happens 🙈

video/mp4

adamchainz,
@adamchainz@fosstodon.org avatar

@siddhantgoel @anze3db Same for me, of all the apps I use. 🤷

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

adamchainz,
@adamchainz@fosstodon.org avatar

@CodenameTim Nice one, very nice.

adamchainz, to random
@adamchainz@fosstodon.org avatar

♦️ Yay, my force push blog post was featured in this week’s @pythonbytes ! 🥳

https://pythonbytes.fm/episodes/show/384/force-push-lightly

adamchainz,
@adamchainz@fosstodon.org avatar

@sabderemane @pythonbytes Your blog is still valid and you’re allowed to collect tips that others have as well :)

carlton, to django
@carlton@fosstodon.org avatar

> Custom tags may now set extra data on the Parser object that will later be made available on the Template instance. Such data may be used, for example, by the template loader, or other template clients.

That looks handy, at least partially 😜

https://docs.djangoproject.com/en/dev/releases/5.1/#templates

adamchainz,
@adamchainz@fosstodon.org avatar

@carlton I guess you’re rather partial to the feature?

adamchainz,
@adamchainz@fosstodon.org avatar

@carlton good to see the template engine isn’t static.

adamchainz, to python
@adamchainz@fosstodon.org avatar

🐍♦️ Use Git to pass pytest a list of all modified test files:

pytest $(git diff --name-only '/test_.py')

Adjust the pathspec (Git’s “glob” syntax) if you have a different test file naming convention.

adamchainz,
@adamchainz@fosstodon.org avatar

@cfbolz yeah that would be sick, theoretically possible in a plugin.

adamchainz, to random
@adamchainz@fosstodon.org avatar

♦️ There is a safer alternative to 'git push --force'!

🫸 Use --force-with-lease and --force-if-includes to restrict force pushes so that they don’t unintentionally overwrite commits pushed by others.

Explained in my post: https://adamj.eu/tech/2023/10/31/git-force-push-safely/

adamchainz,
@adamchainz@fosstodon.org avatar

@hjwp yes it reads the reflog :)

Nothing is ever gone in Git until it’s expired from the reflog

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