Contributing to classiness (in Django)
A couple weeks ago I ran a poll on Twitter asking people whether they’d ever used, or considered using, the
contribute_to_class() method to write something that attaches to or hooks into a Django ORM model class, and if so what their thoughts were. There was also a “don’t know what that is” option, which won by a large margin, and I promised I’d provide an explanation.
Unfortunately, that was around the time I suffered a kitchen accident which left me without full use of my left hand for a bit. Full …
Truths programmers should know about case
A couple weeks ago I gave a talk about usernames at North Bay Python. The content came mostly from things I’ve learned in roughly 12 years of maintaining django-registration, which has taught me more than I ever wanted to know about how complex even “simple” things can be.
I mentioned toward the beginning of the talk, though, that it wasn’t going to be one of those “falsehoods programmers believe about X” things. If you’re not familiar with those, you can just Google for “falsehoods programmers believe” and get a bunch …
Core no more
If you’re not the sort of person who closely follows the internals of Django’s development, you might not know there’s a draft proposal to drastically change the project’s governance. It’s been getting discussion on GitHub and mailing lists, but I want to take some time today to walk through and explain what this proposal does and what problems it’s trying to solve. So. Let’s dive in.
What’s wrong with Django?
Django the web framework is doing pretty well. It’s a stable, popular piece of software. Django the open-source project is OK right …
Today I’m pleased to announce the release of django-registration 3.0. This is a pretty big update, and one that’s been coming for a while, so I want to take a moment to go briefly through the changes (if you want the full version, you can check out the upgrade guide in the documentation).
This also marks the retirement of the 2.x release series of django-registration; 2.5.2 is on PyPI, and I intend for it to be the last 2.x release. The 2.x branch still exists …
Checking if you're pwned (with Django)
Back in March I announced the release of a couple security-related projects for Django, one that implements the
Referrer-Policy header, and one that uses the Pwned Passwords database of Have I Been Pwned to check users’ passwords.
Today I’ve bumped the version and rolled a new release of pwned-passwords-django; if you’re reading this, version 1.2 is on the Python Package Index, and is only a
pip install away. And, of course, there’s full documentation available on how to use it.
(technically, 1.2.1 is now the version on PyPI, because …