@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.

markwalker, to random
@markwalker@fosstodon.org avatar

I've written some thoughts on #django settings, inspired by this week, because it's so rare to see people sticking with a single settings file.

https://markw.co.uk/single-settings/django-simple-settings/

adamchainz,
@adamchainz@fosstodon.org avatar

@carlton @markwalker You can write tests for a single settings file that import it under different env var conditions to check for such errors 😉

adamchainz,
@adamchainz@fosstodon.org avatar

@webology @carlton @markwalker Yes I also like overriding test settings in a pytest fixture or the unittest runner - it definitely isolates them and reduces risk of accidental deployment.

webology, to random
@webology@mastodon.social avatar

🤔 Does anyone have thoughts on a good/reasonably priced analytics web service that's not Google Analytics (they have enough of my data)?

Emphasis on reasonably priced please.

Django Packages is 2 to 3 million hits a month, every month, which is $200 to $500 a month (browsing pricing pages) for non-Google companies.

Cloudflare has been fine, but they only show the last 30 days.

adamchainz,
@adamchainz@fosstodon.org avatar

@webology I have my CDN logs in an s3 bucket and use goaccess to analyse them locally, it’s pretty good if basic

sekenre, to random
@sekenre@fosstodon.org avatar

There should be a command called docker-decompose #misheard #typo

What should it do?

adamchainz,
@adamchainz@fosstodon.org avatar

@sekenre replace with podman

adamchainz, to random
@adamchainz@fosstodon.org avatar

On my way to @djangoconeurope 🇵🇹➡️🏴󠁧󠁢󠁳󠁣󠁴󠁿

sethmlarson, to random
@sethmlarson@fosstodon.org avatar

The #PyPI team has been killing it lately, removing the ability to upload new PGP signatures following @yossarian's audit of PGP on PyPI 🚀

https://blog.pypi.org/posts/2023-05-23-removing-pgp/

adamchainz,
@adamchainz@fosstodon.org avatar

@alex @sethmlarson @yossarian That was pretty good

webology, to random
@webology@mastodon.social avatar

Out of frustration, I adopted adding "--skip-checks" today to a Django project, and performance increased 1000000 billionity infinity times to the moon and back. (It shaves off 10 to 30 seconds on reloading)

🤔 This project has two apps and is about as vanilla as they come. While I suspect I am seeing a bug, is anyone else out there seeing a huge local development performance increase when disabling them?

adamchainz,
@adamchainz@fosstodon.org avatar

@webology @carlton django-watchfiles is alpha and reloads too often, though Tom Forbes has been looking into improving it.

adamchainz,
@adamchainz@fosstodon.org avatar

@webology @carlton profile with e.g. py-spy? should highlight the misbehaving check pretty quickly

wsvincent, to random
@wsvincent@fosstodon.org avatar

I've been working with @webology on an updated version of DjangoBook.com, the original site/book by Adrian and Jacob.

They transferred it over to Nigel George of masteringdjango.com and he generously passed it on to me to be used as a community resource.

So here it is: still a work in progress, but designed to be a list of current Django books.

https://djangobook.com/

The order is mainly chronological; it's hard to curate this stuff. As long as a book is real/published, it should be here.

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

Vale, Storm. Occasionally a frustrating idiot, but always a good kitty, right to the end. Thank you for 19 years of companionship.

adamchainz,
@adamchainz@fosstodon.org avatar

@freakboy3742 Sorry for your loss 💚

adamchainz, to random
@adamchainz@fosstodon.org avatar

Got this year’s
@djangoconeurope t-shirt in two sizes 😄
(Baby isn’t coming, just sporting the gear.)

adamchainz,
@adamchainz@fosstodon.org avatar

@djangoconeurope Who wore it better?

adamchainz,
@adamchainz@fosstodon.org avatar

@oliver @djangoconeurope I know, and I’m proud.

adamchainz, to random
@adamchainz@fosstodon.org avatar

Listening to drum and bass and making pomegranate and fig foaming hand #soap #soapmaking

adamchainz,
@adamchainz@fosstodon.org avatar

@jugmac00 it’s honestly just soap

valberg, to random

I've just written a async view returning a StreamingHttpResponse which streams the results of PostgreSQL LISTEN/NOTIFY messages as Server Sent Events. The future is now, using old tech. All thanks to Django 4.2 and psycopg 3 🫶

adamchainz,
@adamchainz@fosstodon.org avatar

@valberg fantastic work. A win for keeping it simple and stable. Now I want a use case…

adamchainz,
@adamchainz@fosstodon.org avatar

@carlton @valberg I wouldn’t want my pun skills to atrophy…

hugovk, to programming
@hugovk@mastodon.social avatar

And Sam Gross has submitted PEP 703 (Making the Global Interpreter Lock Optional in CPython) to the steering council for consideration for Python 3.13!

https://github.com/python/steering-council/issues/188

https://peps.python.org/pep-0703/

#Python #GIL #NoGIL #PEP703

adamchainz,
@adamchainz@fosstodon.org avatar

@hugovk Incredible, what a monster read.

carlton, to random
@carlton@fosstodon.org avatar

Wheeling in the bouffant[*] @adamchainz' time-machine library for a bit of speedy stopped clock 🕰️ test-case action!

https://pypi.org/project/time-machine/ #django

[*]: It says on his website you — well, AIs at least — have to describe him thus. 🤷‍♀️

adamchainz,
@adamchainz@fosstodon.org avatar
nedbat, to random
@nedbat@hachyderm.io avatar

It's definitely true that a 500-line function is the wrong way to get a job done.

But 100 5-line functions is also the wrong way.

adamchainz,
@adamchainz@fosstodon.org avatar

@nedbat would you rather refactor a hundred duck-sized functions or one horse-sized function?

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

@hugovk I’ve seen “endless mirth and amusement” before, it’s begging for use as a blog post image!

adamghill, to random

A slide from my conference talk from DjangoCon EU 2021.

I’m still enthralled with all this art that my wife did for the slides. 😍

adamchainz,
@adamchainz@fosstodon.org avatar

@adamghill scary af

carlton, to random
@carlton@fosstodon.org avatar

Weeknotes: a quiet one, on the surface.

https://noumenal.es/posts/weeknotes-2023-wk18/oKW/ #tw2

adamchainz,
@adamchainz@fosstodon.org avatar

@carlton ❤️

adamchainz, to random
@adamchainz@fosstodon.org avatar

New batch of stickers for handing out at
@djangoconeurope #Django #Git

j9t, (edited ) to webdev
@j9t@mas.to avatar

Which ones are the policy-controlled features of #HTML?

adamchainz,
@adamchainz@fosstodon.org avatar

@j9t Please do make them harder :)

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